Skip to content

Commit 6697e1d

Browse files
committed
Update README.md
1 parent 8099299 commit 6697e1d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,17 @@ if($regex->test("http://github.com"))
2424
else
2525
echo "invalid url";
2626

27+
if (preg_match($regex, 'http://github.com')) {
28+
echo 'valid url';
29+
} else {
30+
echo 'invalud url';
31+
}
32+
2733

2834
echo "<pre>". $regex->getRegex() ."</pre>";
2935

3036

37+
3138
echo $regex ->clean(array("modifiers"=> "m","replaceLimit"=>4))
3239
->find(' ')
3340
->replace("This is a small test http://somesite.com and some more text.", "-");

0 commit comments

Comments
 (0)