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?

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!