Portal Home > Knowledgebase > Articles Database > Help with regex
Help with regex
Posted by latheesan, 01-05-2010, 12:30 AM |
hi,
i want to work with values from $_COOKIE['s_id'], which is in this format (so to say):
c39762446d2a3595c36baed339255b874b42bf7b885ad8.06313221
how can i check if $_COOKIE['s_id'] only contains letters, numbers and a dot with regex?
|
Posted by Jamza, 01-05-2010, 12:40 AM |
That will match only letters, numbers and a period, but won't check for order.
|
Posted by latheesan, 01-05-2010, 08:38 AM |
this is exactly what i was after, thanks allot.
|
Add to Favourites Print this Article
Also Read
Server Speed (Views: 741)