jithoosin has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks
Could any of the esteemed monks could explain this regex. This regex is used to get swf files from html pages.
The regex is m/\.swf(?:\?.*)?$/oi. I am not understanding the meaning thing inside the brackets. Why is "?" used in the regex. After some searching in google i feel "?:" is optional kind of thing. Thanks in advance.
Regards
Kiran.
Could any of the esteemed monks could explain this regex. This regex is used to get swf files from html pages.
The regex is m/\.swf(?:\?.*)?$/oi. I am not understanding the meaning thing inside the brackets. Why is "?" used in the regex. After some searching in google i feel "?:" is optional kind of thing. Thanks in advance.
Regards
Kiran.
Back to
Seekers of Perl Wisdom