good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: Reverse regexp a regexp?by Anonymous Monk |
on Feb 12, 2010 at 20:20 UTC ( [id://822924]=note: print w/replies, xml ) | Need Help?? |
Reread what Roboticus said. Your first example could just as easily have been http://www.youtube.com/user/test[1-5] and your second could have been http://(u[sk]|be)\.apple.itunes.com/blabla/blabla/id/(\d*)5(\d+). How do you make the choices? Once you can answer those questions, you'll be able to make some progress towards what you want.
In Section
Seekers of Perl Wisdom
|
|