Thanks! That appears to be the answer Still some to learn with the old regexs I think Cheers Dan -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Chris at globet.com Sent: 09 February 2006 12:58 To: thelist at lists.evolt.org Subject: Re: [thelist] Regexs and headaches Dan > I have a regex problem that is giving me major hassles. the > preamble is that the expression looks for opening HTML tags > in a textarea value [..] > Here is the regex: > > /\<[^\/]([^<>]*)[^\/]>/g What about the following? /\<[^\>\/]+?\>/g I haven't had time to test it I'm afraid, so it may be fatally flawed. Chris Marsh Web Developer http://www.globet.com/ Tel: +44 20 8246 4804 Ext 828 Fax: +44 20 8246 4808 Any opinions expressed in this email are those of the individual and not necessarily the Company. This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential and privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. -- * * Please support the community that supports you. * * http://evolt.org/help_support_evolt/ For unsubscribe and other options, including the Tip Harvester and archives of thelist go to: http://lists.evolt.org Workers of the Web, evolt !