NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Regular Expression

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Reply
 
LinkBack Thread Tools
Old 11-01-2009, 06:01 AM THREAD STARTER               #1 (permalink)
Ik
Quality //
Join Date: Sep 2008
Posts: 911
Ik has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud of
 


Breast Cancer Save a Life Alzheimer's Wildlife Wildlife

Regular Expression


I seem to be dumb when it comes to RE!

Can someone help me write a reg exp that finds the following?

Code:
&raquo; <a href="whatever goes here">Home</a>
Thanks
Ik is offline   Reply With Quote
Old 11-01-2009, 08:53 AM   #2 (permalink)
New Member
Join Date: Jan 2009
Posts: 9
averge is an unknown quantity at this point
 



/&raquo; <a href="(.*)">Home</a>/
try? o_O
averge is offline   Reply With Quote
Old 11-01-2009, 09:02 AM THREAD STARTER               #3 (permalink)
Ik
Quality //
Join Date: Sep 2008
Posts: 911
Ik has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud of
 


Breast Cancer Save a Life Alzheimer's Wildlife Wildlife
Originally Posted by averge View Post
/&raquo; <a href="(.*)">Home</a>/
try? o_O
Hey man,
????: NamePros.com http://www.namepros.com/programming/620407-regular-expression.html

It gives an error

Code:
Warning: preg_replace() [function.preg-replace]: Unknown modifier 'a'
Ik is offline   Reply With Quote
Old 11-01-2009, 09:47 AM   #4 (permalink)
NamePros Regular
 
pixelhero's Avatar
Join Date: May 2008
Location: England
Posts: 771
pixelhero is a name known to allpixelhero is a name known to allpixelhero is a name known to allpixelhero is a name known to allpixelhero is a name known to allpixelhero is a name known to all
 


Help The Homeless - Holiday 2009
Originally Posted by averge View Post
/&raquo; <a href="(.*)">Home<\/a>/
try that, need to escape the /a with a \
pixelhero is offline   Reply With Quote
Old 11-01-2009, 10:00 AM THREAD STARTER               #5 (permalink)
Ik
Quality //
Join Date: Sep 2008
Posts: 911
Ik has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud ofIk has much to be proud of
 


Breast Cancer Save a Life Alzheimer's Wildlife Wildlife
Originally Posted by NVD View Post
try that, need to escape the /a with a \
Perfect, it works now Thank you all
Ik is offline   Reply With Quote
Reply


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


 
All times are GMT -7. The time now is 02:32 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger