Hello monks. I have a regex question. I have some regex in a script and I'm trying to parse for a new string and having problems. The problem is that the new string has several "/" in it. An example is "/strt/codes/76453". Here's the code that I'm trying to use to watch the regex:
push @matches, $_ if /^.*?(?:\b|_)$parse1(?:\b|_).*?(?:\b|_)$parse2(? +:\b|_).*?$/m;
I tried \/\ in $parse1 file with no success. The other problem is that the #s at the end of the string are all different so they're hard to match. I currently has nothing in $parse2. Any guidance on how to parse for the sought after string would be greatly appreciated. Thanks in advance.
In reply to regex question by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |