Custom Patterns - HTML tag

Get help with installation and running here.

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 » Fri Sep 25, 2009 4:40 pm

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: 2220
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Custom Patterns - HTML tag

Post by DataMystic Support » Mon Sep 28, 2009 12:16 pm

Thanks- we've updated it to:

Code: Select all

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

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests