Search found 3 matches
- 20 Oct 2022 06:24
- Forum: DOS Batch Forum
- Topic: How to parse and extract data from string with jrepl
- Replies: 6
- Views: 4469
Re: How to parse and extract data from string with jrepl
Hi Steffen first very much thanks . in your example you read a file @echo off for /f "delims=" %%i in ( 'jrepl.bat ".*- POE: ([^-\s]+).*- UserID: ([^-\s]+).*" "set \x22POE=$1\x22\nset \x22UserID=$2\x22" /XSEQ /A /F "test.txt"' ) do %%i echo %POE% echo %UserID% pause could i use jrepl to read from a ...
- 20 Oct 2022 06:20
- Forum: DOS Batch Forum
- Topic: How to parse and extract data from string with jrepl
- Replies: 6
- Views: 4469
Re: How to parse and extract data from string with jrepl
Hi Antonio very much thanks to your effort : in case the string is more complicated and contains some other info in the between : set "string=000001,1666026232,"2022/10/17","19:03:52","172.24.48.245","mvssnd1.bmc.com","audit","info","Oct 17 08:18:49 SND1 RACF: ADDUSER: Auth: SPECIAL - Group: CC22401...
- 19 Oct 2022 09:52
- Forum: DOS Batch Forum
- Topic: How to parse and extract data from string with jrepl
- Replies: 6
- Views: 4469
How to parse and extract data from string with jrepl
How to parse and extract data from string with jrepl . I have a string like : 000006,1666026219,"2022/10/17","19:03:39","172.24.48.245","XYZ","audit","info","Oct 17 08:18:49 SND1 Group: CC224010 - POE: SND10020 - UserID: MVSMXT - CmdUserID: MVSMXT6 i would like to extract the value after some of the...