dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: HTML Tag Regular Expression

  1. #1
    Join Date
    Jan 2003
    Location
    Cardiff, Wales, UK
    Posts
    208

    HTML Tag Regular Expression

    There's plenty of regular expressions out there that match everything between two HTML tags, but I can't find any that match on multiple line, such as:

    <style>
    sss

    sss
    s
    s
    </style>.

    In Javascript stylee...

    Can anyone help?

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Just add the flag m to the end:

    /yourregexp/m

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles