Regular expressions for hao
"Michael Wegemer [email protected] [hercules-390]" <[email protected]> Mon, 03 Feb 2020 12:40:03 -0500
| Newsgroups | gmane.comp.emulators.hercules390.general |
|---|---|
| Message-ID | <[email protected]> |
I am having difficulties trying to get a regular expression to match a
message coming across the hercules console from MVS 3.8j.
The message I am trying to match is: | JOB 61 *IEF233A M
480,PRIVAT,SL,BACKUP,BACKUP
My hao target command is : hao tgt * IEF233? M ([0-9A-F]{3-4}),([0-9A-
Z]{1-6}),*
My understandng of regular expressions is that
? is any single character (could be A or D in my case)
* is any number of characters before/after the string I am
looking
( starts a group
[0-9A-F]{3-4} will match any 3-4 hex digits (480)
) will end the group
([0-9A-Z]{1-6}) will match any 1-6 alphanumeric characters
(PRIVAT)
I am stumped as to what I am doing wrong.
Any help would be greatly appreciated.