|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: regex meaningby prasadbabu (Prior) |
| on Nov 12, 2007 at 10:31 UTC ( [id://650247]=note: print w/replies, xml ) | Need Help?? |
|
Replacing the number starting with one or more zeros and followed by a number with none. Here (?=\d), is positive look ahead which has zero width assertion. So it ll replace only the zeroes and not the following number. Take a look at perlre and YAPE::Regex::Explain For example:
Prasad
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||