Preg_match regex help?

Not quite: (0-9a-z/-+) is "a number, followed by a letter, followed by at least one dash You want (-0-9a-z+).

Not quite: (0-9a-z/-+) is "a number, followed by a letter, followed by at least one dash. " You want (-0-9a-z+).

I would just use \w: preg_match('! /(-\w+)/? $!', $_SERVER'REQUEST_URI', $m); From Character Classes or Character Sets: \w stands for "word character", usually A-Za-z0-9_.

Notice the inclusion of the underscore and digits.

W stands for word, can be letter both upper case and lower case A to Z and a to z, number 0 to 9 or _. It's equivalent to A-Za-z0-9_. You can test in the online tester here.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions