Current location: Hot Scripts Forums » Programming Languages » PHP » Regular Expression to match this html

Regular Expression to match this html

 
Prev Previous Post   Next Post Next
  #1  
Old 11-02-09, 08:27 AM
kevinkhandublin kevinkhandublin is offline
Newbie Coder
 
Join Date: Jul 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Regular Expression to match this html

I want a regular expression that will match this html code

PHP Code:
<li class="tel"><strong>Tel:&nbsp;</strong><span><!-- sphoneid telnr="+353 (021)4501172" fileas="Abbey Business & Communications" -->(021)4501172<!-- sphoneid --></span></li
I set up this one but it doesnt seem to work?

PHP Code:
strContactMatches2 '~<li class="tel"><strong>Tel:&nbsp;</strong><span><!-- sphoneid telnr="(.*)" fileas="(.*)" -->(.*)<!-- sphoneid --></span></li>~isU'

What is wrong does anyone know
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regular Expression mohit Everything Java 9 05-08-08 05:55 AM
How retrieve all links in HTML page (regular expression)? Jam2005 PHP 1 04-07-06 07:55 AM
Help with regular expression... :) eddyvlad PHP 2 01-08-06 11:10 PM
regular expression for parsing url link musmanm80 Perl 1 07-28-05 12:58 AM
Regular Expression KHWright Visual Basic 0 06-02-05 07:40 PM


All times are GMT -5. The time now is 08:10 AM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 (Unregistered)