P is for Practical | |
PerlMonks |
Regex Problemby ido50 (Scribe) |
on Aug 25, 2003 at 09:42 UTC ( [id://286336]=perlquestion: print w/replies, xml ) | Need Help?? |
ido50 has asked for the wisdom of the Perl Monks concerning the following question:
Hi! One of my programs uses a simple regex to match a string in a text file. The string is inside an html tag so the regex is something like m/^<[^>]+>$string<\/[^>]+>$/. Anyway the regex always works unless the string contains some parentheses. For example: "Hi there" would match, "Hi there (Mark)" wouldn't. What can I do? P.S. Might be worth mentioning the strings are all hebrew. Thanks... ------------------------- Live fat, die young
Back to
Seekers of Perl Wisdom
|
|