I'm trying without success to build a rex expression. What I want is to match if my string contains a metamorph proximity operator (i.e., w/<n>) *at the very end of the string*.
I'm starting with this:
<rex "w/[1-9]=[0-9]*" $theString>
This does match if theString contains w/1, w/2, w/12, etc. But it also matches if theString contains w/1x, w/2foo, etc. Again, I want to constrain matches to occurances of "w/<some number>" AT THE VERY END OF THE BUFFER. I've tried a bunch of things (none correct, obviously), the last being:
<rex "[w/[1-9]=[0-9]*]=>>=" $theString>
Argh! Help, please. Thanks in advance.
I'm starting with this:
<rex "w/[1-9]=[0-9]*" $theString>
This does match if theString contains w/1, w/2, w/12, etc. But it also matches if theString contains w/1x, w/2foo, etc. Again, I want to constrain matches to occurances of "w/<some number>" AT THE VERY END OF THE BUFFER. I've tried a bunch of things (none correct, obviously), the last being:
<rex "[w/[1-9]=[0-9]*]=>>=" $theString>
Argh! Help, please. Thanks in advance.