projects
/
gwvp-mini.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ed4dc23
)
small test trying to dev filters
author
Paul J R
<me@pjr.cc>
Wed, 19 Sep 2012 23:39:01 +0000 (09:39 +1000)
committer
Paul J R
<me@pjr.cc>
Wed, 19 Sep 2012 23:39:01 +0000 (09:39 +1000)
unittests/filter.php
[new file with mode: 0644]
patch
|
blob
diff --git a/unittests/filter.php
b/unittests/filter.php
new file mode 100644
(file)
index 0000000..
334fbb2
--- /dev/null
+++ b/
unittests/filter.php
@@ -0,0
+1,12
@@
+<?php
+
+$input = "i'm a looking at the rail:road, if you get me";
+
+$inp = preg_replace("/[^a-zA-Z0-9 ]+/", "", $input);
+
+echo "inp is $inp\n";
+
+$res = explode(" ", $inp);
+
+echo "res is ".print_r($res, true);
+?>
\ No newline at end of file