05-12-2007, 11:24 AM
You probably use a str variable to get findrx output, like
You can use array instead:
a[0] will contain whole match (like s in the first example), a[1] - first part enclosed in (), and so on.
You can use array instead:
ARRAY(str) a
if(findrx("...abcdef..." "(ab)(cd)(ef)" 0 0 a)<0) ret
out a[1]
out a[2]
out a[3]
a[0] will contain whole match (like s in the first example), a[1] - first part enclosed in (), and so on.