Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
which doesn't work. But when I insert a "," or "." at the end of the regex like so:while ($ts=~s/(<item name=\"DISPLAY_ORDER\"><value>)(\d+)(<\/value>< +\/item><item name=\"PARAGRAPH_TEXT\">)/$1$paranum$3/si) { print "Set PNum: $paranum\n"; $paranum++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex Problem
by Chady (Priest) on Mar 25, 2002 at 11:34 UTC | |
|
Re: Regex Problem
by strat (Canon) on Mar 25, 2002 at 11:43 UTC | |
|
Re: Regex Problem
by Mudders (Initiate) on Mar 25, 2002 at 12:31 UTC | |
by particle (Vicar) on Mar 25, 2002 at 13:44 UTC | |
|
Re: Regex Problem
by I0 (Priest) on Mar 25, 2002 at 17:37 UTC |