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: [demon01] correct my regex please?: Edit Log



KevinR
Veteran


May 18, 2008, 9:12 AM


Views: 9419
Re: [demon01] correct my regex please?


Code
s/    <- beginning of regexp 

<\/? <- search for < followed by none or one /

[^>]+ <- one or more of any characters except >

> <- search for >

//g <- replace the above pattern with nothing. The 'g' finds and replaces all occurances of the pattern in the string



No need for a donation
-------------------------------------------------


(This post was edited by KevinR on May 18, 2008, 9:18 AM)


Edit Log:
Post edited by KevinR (Veteran) on May 18, 2008, 9:13 AM
Post edited by KevinR (Veteran) on May 18, 2008, 9:18 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