Try:
[0] Perl> print "$_ : ", /(?=^.*fred)(?=^.*bill)/ ? 'matched' :'no match' for qw[ fred&bill bill&fred bill&john fred&john john&bill john&fre +d sucker! ];; fred&bill : matched bill&fred : matched bill&john : no match fred&john : no match john&bill : no match john&fred : no match sucker! : no match [0] Perl>
In reply to Re: Regex match at the beginning or end of string
by BrowserUk
in thread Regex match at the beginning or end of string
by cyber-guard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |