Ok little script here:
$in = <>;
if ($in =~ /p*o*b*o*x/i) {
print "MATCH"
}
Simple enough huh? Here the problem, if I feed it
po xob
it still counts as a match. I don't want it to. I want to match p o b o x, with any amount of characters between them, but I want them to be in that order only.
Thanks. I'm sure it'll take you guys like 8 seconds to tell me what silly mistake I'm making.
$in = <>;
if ($in =~ /p*o*b*o*x/i) {
print "MATCH"
}
Simple enough huh? Here the problem, if I feed it
po xob
it still counts as a match. I don't want it to. I want to match p o b o x, with any amount of characters between them, but I want them to be in that order only.
Thanks. I'm sure it'll take you guys like 8 seconds to tell me what silly mistake I'm making.