FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » help with regular expressions
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
help with regular expressions [message #174320] Sat, 04 June 2011 16:55 Go to previous message
Innerlab is currently offline  Innerlab
Messages: 2
Registered: June 2011
Karma:
Junior Member
Hello. I'm trying to parse pages from wikipedia. Although I'm not
that good with PHP, such scripts are more available on the web than -
lets say- ASP/ VBscript.

I have a PHP script that returns links within wikipedia pages as:

[url=_Name_of_URL_] Name_of_URL [/url]

So, with regex I must parse the above to construct links like:

<a href="http://URL">Name_of_URL</a>

I know the preg_replace( ) function is the one to use, but honestly, I
cannot figure out what regex I must use.

I'd appreciate any guidance on this matter.

Thanks in advance.
_______________________
Eduardo Gomez
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: syntax question
Next Topic: ONLINE BACKUP IS VERY MUCH ESSENTIAL FOR SECURE YOUR DATA
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 01 04:09:56 GMT 2024

Total time taken to generate the page: 0.03798 seconds