Register Advertise with usHelp Desk Today's Posts Search

Showing results 1 to 1 of 1
Search took 0.27 seconds.
Search: Posts Made By: ronperkins
Forum: Programming 30th July 2010, 05:52 AM
Replies: 4
Views: 588
Posted By ronperkins
Re: Regular expressions question

Try this:

<?php
$url = "myproductsite.com";
$pattern = "/product/";
if (preg_match($pattern, $url)) {
echo $url;
}
?>
Showing results 1 to 1 of 1

 
Forum Jump


All times are GMT -6. The time now is 10:16 PM.