I just cannot figure out why you want this.if ($_ =~ m/($regex)/ && $regex =~ /(.*)/s) { ... Now $1 will contain $regex ... }
In reply to Re: Regex: return the pattern instead of the actual match
by JavaFan
in thread Regex: return the pattern instead of the actual match
by Deus Ex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |