Advertisement

09.06.2008 at 05:57PM PDT, ID: 23709458 | Points: 500
[x]
Attachment Details

Using regex to clean up links

Asked by JPERKS1985 in PHP Scripting Language

I'm using a data feed that gives me links resembling

http://www.XXX.com/ResultsEvent.php?event=New+England+Patriots&pid=721

I'd like to use some sort of regex replace to make the links look like this,

http://www.XXX.com/ven/721/New-England-Patriots.php

New England Patriots and 721 will be variables that change between links.Start Free Trial
 
Keywords: Using regex to clean up links
 
Loading Advertisement...
 
[+][-]09.06.2008 at 06:44PM PDT, ID: 22409715

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.07.2008 at 04:45AM PDT, ID: 22410995

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628