[thelist] Excluding tags from a regular expression search

E Michael Brandt michael at divaHTML.com
Wed Sep 12 13:59:44 CDT 2007


I am not quite sure of the context here.  And certainly there are some 
real regex gurus out there that can do this in one pattern.  But my 
brutish way to do it would be in two steps:

First

str=str.replace(/<[^>]+>/g,'');

and then

do the specific search on str.

-- 


E. Michael Brandt

www.divaHTML.com
divaPOP : standards-compliant popup windows
divaGPS : you-are-here menu highlighting
divaFAQ : FAQ pages with pizazz

www.valleywebdesigns.com
JustSo PictureWindow
JustSo PhotoAlbum

--



More information about the thelist mailing list