Got more questions? Find advice on:
ASP
|
SQL
|
XML
|
Windows
in
Construction Advice (forum)
Regular Expressions (group)
(Entire Site)
Search
Welcome to RegexAdvice
Sign in
|
Join
|
Help
Home
Blogs
Forums
Photos
Downloads
RegexAdvice
»
Regular Expressions
»
Construction Advice
»
Re: Perl regex
Perl regex
Last post 03-10-2010, 6:29 AM by
xgoos
. 2 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
03-10-2010, 5:55 AM
60640
xgoos
Joined on 03-10-2010
Posts 3
Perl regex
Reply
Quote
Hallo. I'm trying to build Perl regex for use in php function preg_match_all().
In text, I'm looking for HTMLtag <div class='editable'>. I'm not iterested in its pair tag </div>. Of course tag can include another informations like <div align='left' class="editable" style='display:'>. Briefly speaking: I'm looking for those div tags which are defined by 'class='editable'' string.
My best try is /<div.*class=[ '"]editable[ '"][^>]*>/ Bus the first * is so greedy... :(
Is there somebody who can help me?
Thx
Report abuse
03-10-2010, 6:19 AM
60641
in reply to
60640
killahbeez
Joined on 07-26-2007
Bucuresti, Romania
Posts 331
Re: Perl regex
Reply
Quote
<div[^<>]+class=["']?editable["']?[^<>]*+>
http://portal-vreme.ro
Report abuse
03-10-2010, 6:29 AM
60644
in reply to
60641
xgoos
Joined on 03-10-2010
Posts 3
Re: Perl regex
Reply
Quote
Thank U very much :)
Report abuse
Got more questions? Find advice on:
ASP
|
SQL
|
XML
|
Windows
|
About regexadvice.com
|
Privacy Policy
|
ASP.NET Tutorials
|
Advertise
Copyright ©2005 DevAdvice.com