RE: [PHP] Regex Assistance

2002-05-28 Thread Scott Hurring
:[EMAIL PROTECTED]] Sent: Monday, May 27, 2002 10:00 PM To: [EMAIL PROTECTED] Subject: [PHP] Regex Assistance Hey All, I am just begining to learn regex functions in PHP. Anyhow I am trying to code a preg_replace function which basically cleans a URL. What I mean is say a url

[PHP] Regex Assistance

2002-05-27 Thread Scott Reismanis
Hey All, I am just begining to learn regex functions in PHP. Anyhow I am trying to code a preg_replace function which basically cleans a URL. What I mean is say a url is index.php?page=hellolist=10start=4 you pass that URL and say 'list' to the function (shown below) Anyhow I want that to

RE: [PHP] Regex Assistance

2002-05-27 Thread Martin Towell
this is what I use to get rid of line from the url $qs = ereg_replace($, , ereg_replace(line=[^]*?, , $QUERY_STRING)); HTH MArtin -Original Message- From: Scott Reismanis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 12:00 PM To: [EMAIL PROTECTED] Subject: [PHP] Regex