Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help With Regular Expression

Status
Not open for further replies.

checkai

Programmer
Jan 17, 2003
1,629
US
Can someone help me determine what the values are for the below 3 variables?

$server_pos = preg_replace('/^(.+?:\/\/)(.+)$/i','$2','$server_pos_base = preg_replace('/^(.+?)\/.+$/i','$1',$server_pos);
$server_pos_flag = preg_replace('/^.+?(\/.+)$/i','$1',$server_pos);

Thanks much!
 
what do you mean? would you not get the values if you ran the code? or do you mean something else?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top