Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Difference between these regexesby haukex (Archbishop) |
on Jul 30, 2016 at 10:49 UTC ( [id://1168857]=note: print w/replies, xml ) | Need Help?? |
Thank you very much, everyone who replied! Taking all the replies together I think that confirms that the set of strings matched is the same for all three of these particular regexes. This also confirms my initial suspicion that the regex m{<ReportHost[^>]*>(?:(?!</ReportHost>).)*</ReportHost>}s could also be written as m{<ReportHost[^>]*>.*?</ReportHost>}s. Regards,
In Section
Seekers of Perl Wisdom
|
|