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
Re: help with regular expressions [message #174345 is a reply to message #174320] Mon, 06 June 2011 14:06 Go to previous message
Nick Wedd is currently offline  Nick Wedd
Messages: 1
Registered: June 2011
Karma:
Junior Member
On 04/06/2011 17:55, Innerlab wrote:
> 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.

Can you give an actual example of a string that you might want to
process, and of what you want it converted to?

Nick
--
Nick Wedd
nick(at)maproom(dot)co(dot)uk
[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: Tue Nov 26 15:10:32 GMT 2024

Total time taken to generate the page: 0.06507 seconds