Dear Monks
I have a 6 character string (alphanumeric) and i want to check the particular char at particular position to buld my condition. for example: in string XXXXpX, i care only about char "p" at 5th position and if it matches then my condition is met.
i used following regex in my program:
my $strTest = "ABCDpF"; if (grep {m/.?.?.?.?p.?/i} $strTest) { print "String matched the Pattern"; }
it works in most of my test cases. but i used a string "tp7avs" where i assume it should not match but it does. Could anyone help?
-KAKA-In reply to Perl RegEx doubt by swissknife
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |