You are being overprecise with your regexp here.
Keep it simple. You also need to have regexp construe
your regexp as a string for best results, thus the
quotes rather than bracket notation.
Code:
() 81 regexp "(\<schedule.*=\).(\[0-9\]+).*\>" $target foo one two
1
() 83 set foo
<schedule id="863"/>
() 84 % set one
<schedule id=
() 85 % set two
863
(mars) 86 %
I do not try to escape quotation marks, though you can:
use the anychar '.', regexp symbol, it's good enough.
My 2 cents.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.