Skip to content

Commit 6558393

Browse files
committed
Fixed Example.php
1 parent 4d4e8e9 commit 6558393

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Example.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99

1010
$regex = new VerbalExpressions;
1111

12-
$regex ->startOfLine()
13-
->then("http")
14-
->maybe("s")
15-
->then("://")
16-
->maybe("www.")
17-
->anythingBut(" ")
18-
->endOfLine();
12+
$regex->startOfLine()
13+
->then("http")
14+
->maybe("s")
15+
->then("://")
16+
->maybe("www.")
17+
->anythingBut(" ")
18+
->endOfLine();
1919

2020
if($regex->test("http://github.com"))
2121
echo "valid url". '<br>';
@@ -30,6 +30,6 @@
3030

3131
echo "<pre>". $regex->getRegex() ."</pre>";
3232

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

0 commit comments

Comments
 (0)