Hi
Please take a note about the regular expressions here http://perldoc.perl.org/perlretut.html and do you want something like this?
use strict; my $string = "Required Not_Required Not_Required Required"; while($string=~/\bRequired\b/gi){ print "$&\n";##Here it will print only required text with non word + character before and after }
Punitha
In reply to Re: Regx help
by Punitha
in thread Regular expression help
by ashnator
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |