Re: Regular Expressions
From: Justin Rogers (Justin_at_games4dotnet.com)
Date: 04/20/04
- Next message: Chris Botha: "Re: The better mousetrap with a built-in trap"
- Previous message: Tim Wilson: "Re: How to determine current/open Form name??"
- In reply to: Matt Berther: "Re: Regular Expressions"
- Next in thread: Collin Smith: "Re: Regular Expressions"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 19 Apr 2004 20:09:36 -0700
You really should use balancing groups here. Check out www.regexlib.com and
you'll find some helpful expressions for working with HTML.
-- Justin Rogers DigiTec Web Consultants, LLC. Blog: http://weblogs.asp.net/justin_rogers "Matt Berther" <mberther@hotmail.com> wrote in message news:%23Wag6onJEHA.228@TK2MSFTNGP10.phx.gbl... > Hello Collin, > > > I'm new to regular expressions and I'm having some trouble with the > > following. I'm trying to match the start and end tags of a particular > > HTML tag set and all the text inbetween. > > <\w+>(.*)</\w+> > > This will store the contents of everything in between the tags in a group. Keep in mind that this expression doesnt account for attributes that may be on the tag. > > -- > Matt Berther > http://www.mattberther.com
- Next message: Chris Botha: "Re: The better mousetrap with a built-in trap"
- Previous message: Tim Wilson: "Re: How to determine current/open Form name??"
- In reply to: Matt Berther: "Re: Regular Expressions"
- Next in thread: Collin Smith: "Re: Regular Expressions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|