Custom Patterns - HTML tag

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
Josiah Hincks
Posts: 5
Joined: Sun Sep 13, 2009 5:38 pm

Custom Patterns - HTML tag

Post 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?
User avatar
DataMystic Support
Site Admin
Posts: 2229
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Custom Patterns - HTML tag

Post by DataMystic Support »

Thanks- we've updated it to:

Code: Select all

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

Simon Carter, https://www.DataMystic.com
https://www.JadeDiabetes.com - Insulin dose calculator for Type 1 diabetes
https://www.DownloadPipe.com - 250,000 free software downloads
Post Reply