Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: using ? and ?? in regex

by hdp (Beadle)
on Apr 26, 2001 at 17:41 UTC ( [id://75785] : note . print w/replies, xml ) Need Help??

in reply to using ? and ?? in regex

You're using ? in the shell wildcard sense to mean "any character"; unfortunately, that's not what it means in a regular expression. See perldoc perlre for a list of all the metacharacters. You probably want . instead.