josessegura
New User
Joined: 12 Feb 2015 Posts: 6 Location: México,D.F.
|
|
|
|
Hello,
I'm trying to make a search for a valid IP pattern in
each member on a data set using 'grep' with bpxwunix in REXX,
but I'm noting that the character '\' or '{' is replaced by ':',
how I can solve this ?.
The regular expression is as follows (the expression was tested in a unix):
exp = '(25 [0-5] | 2 [0-4] [0-9] |? [01] [0-9] [0-9]) \.
(25 [0-5] | 2 [0-4] [0-9] | [01] [0-9] [0-9]?) \.
(25 [0-5] | 2 [0-4] [0-9] | [01] [0-9] [0-9]?) \.
(25 [0-5] | 2 [0-4] [0-9] | [01] [0-9] [0-9]?) "
That return code is 0, but does not return any result.
cmd = 'echo 127.0.0.1 | grep -E "' exp '"
bpxwunix cmd call out,,., STACK.
do i = 1 to out.0
say out.i
end
thx |
|