CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions: Re: [reder] HTML Tag Regex.: Edit Log



osmodius
Novice

Apr 19, 2007, 11:15 AM


Views: 6423
Re: [reder] HTML Tag Regex.

As far as I know,


Code
m/(<DIV>)(.+)(<\/DIV>)/sgi


should work. $2 will contain everything within the two div tags.

You can also use the HTML::Parser module to this effect.


Need some real-time help? Shove admin@ub3r.net on yer MSN.

(This post was edited by osmodius on Apr 19, 2007, 11:22 AM)


Edit Log:
Post edited by osmodius (Novice) on Apr 19, 2007, 11:22 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives