|
| 19 Dec 2014 10:17 PM |
$matching = preg_grep('/^U/g', $countries); print_r($matching);
Warning: preg_grep(): Unknown modifier 'g' in C:\xampp\htdocs\regex.php
why :( |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2014 10:19 PM |
| g isn't a modifier in php. |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2014 10:20 PM |
oops i made a typo meant to put U
nevermind |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Dec 2014 10:22 PM |
| doing some practice with regex so i dont mix up different metacharacters or quantifiers |
|
|
| Report Abuse |
|
|
| |
|
Osyris
|
  |
| Joined: 27 Oct 2007 |
| Total Posts: 4321 |
|
|
| 19 Dec 2014 10:25 PM |
| Posting code on C&G doesn't make you cool and regex isn't even PHP. |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2014 10:26 PM |
"Posting code on C&G doesn't make you cool and regex isn't even PHP."
wearing a communism t-shirt doesnt make u cool oh you werent trying to be? so u just did it for another reason? oh okay. |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2014 10:27 PM |
*attention wh0re alert*
~CoffeeFlux. For you. |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2014 10:27 PM |
php is a gross language. do c#.
works on the web too if you want to use ASP.NET |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2014 10:29 PM |
php isn't that gross for me i don't like some of the syntax but its okay
it's kind of weird though |
|
|
| Report Abuse |
|
|