Hi,
I'm currently trying to parse parameters in a text block for values in a
HashMap.I create an iterator, I get out the keys. For each key I create a
substitution expression like:
key = (String) iter.next();
text = perl5.substitute("s/\\*([^*]*)" + key + "([^*])*\\*/$1" +
ns.get(key) + "$2/gsx", text);things work really fine until...

DEBUG main rulez.ParseUtilsubstituting: s/\*([^*]*)width([^*])*\*/$140$2/gsx

the $1 gets mingled with the digits of the substition value.

I'm almost sure it has something todo with my lack of understanding regexps.
But any help would be really appreciated.
Jeroen Dijkmeijer.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to