in reply to
Regex problem
I am not sure how element definitions look like in DTDs, but would not
/\Q$element_def/
solve your problem?
Comment on
Re: Regex problem
Download
Code
Replies are listed 'Best First'.
Re^2: Regex problem
by
mboudreau
(Acolyte)
on Jun 11, 2010 at 15:24 UTC
Bingo! I was ignoring the fact that the element definition contains regex metacharacters. I haven't had an occasion to use \Q before. Thanks!
[reply]
In Section
Seekers of Perl Wisdom