in reply to Re^2: Escaping Regex Expressions
in thread Escaping Regex Expressions
Should work (accepts the literal ' ', or anything else that isn't a word character). The problem doesn't appear to be with your regexp, but with whatever's mangling the html before it gets to your regexp.if($text =~ /Page (?: |\W)+ 1 (?: |\W)+ of (?: |\W)+ (\d+)/x) { print "\n\nNumber of Pages: $areaCode$1\n\n"; }
|
|---|