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 reply to Re^3: Reverse regexp a regexp?
by Anonymous Monk
in thread Reverse regexp a regexp?
by freakingwildchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |