File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ VerbalExpressions is a PHP library that helps to construct hard regular expressi
8
8
9
9
// some tests
10
10
11
- $regex = new VerEx ;
11
+ $regex = new VerbalExpressions ;
12
12
13
13
$regex ->startOfLine()
14
- ->then( "http" )
15
- ->maybe( "s" )
16
- ->then( "://" )
17
- ->maybe( "www." )
18
- ->anythingBut( " " )
14
+ ->then("http")
15
+ ->maybe("s")
16
+ ->then("://")
17
+ ->maybe("www.")
18
+ ->anythingBut(" ")
19
19
->endOfLine();
20
20
21
21
@@ -35,7 +35,7 @@ echo "<pre>". $regex->getRegex() ."</pre>";
35
35
36
36
37
37
38
- echo $regex ->clean(array("modifiers"=> "m","replaceLimit"=> 4))
38
+ echo $regex ->clean(array("modifiers" => "m", "replaceLimit" => 4))
39
39
->find(' ')
40
40
->replace("This is a small test http://somesite.com and some more text.", "-");
41
41
You can’t perform that action at this time.
0 commit comments