Page 1 of 1

Custom Patterns - HTML tag

Posted: Fri Sep 25, 2009 4:40 pm
by Josiah Hincks
The supplied pattern for HTML tags under Custom Patterns is:

Code: Select all

<(?:[^>'"]*|".*?"|'.*?')+>
I find it does not work with normal HTML well. For instance, here is a match it makes:
<a href="index.html">Home</a> > <a href="learn_focusing.html">Learn Focusing</a> > <a href="bibliography-index.html">
Can the supplied default pattern be improved so it matches precisely one tag?

Re: Custom Patterns - HTML tag

Posted: Mon Sep 28, 2009 12:16 pm
by DataMystic Support
Thanks- we've updated it to:

Code: Select all

<(?:[^>'"]*|"[^"]*"|'[^']*')+>