JFarr has asked for the wisdom of the Perl Monks concerning the following question:
Helo Monks,
I've been trying to match a string and keep failing.
I have Rescue21_binaries_V5.0.29.0_patch_R5.0.24.1_DiffList.txt
and want to match the words "Rescue21", "patch" and "DiffList.txt".
I've tried
But this keeps failing. Can someone smarter than I help with the reg exp match? Thanks$mystring = "Rescue21_binaries_V5.0.29.0_patch_R5.0.24.1_DiffList.txt" +; if( $mystring =~ m/Rescue21\w_patch_\wDiffList.txt/ ) { }
Back to
Seekers of Perl Wisdom