I need to match using regex like this :
user or user2 or user3 upto user9
user[2-9] how do I do this is PHP.
if $user = preg_match ??
Thanks
Hi I've currently been searching for something to point me in the right direction.
This is what I've got.. but can seem to get it working! preg_match('user/[2-9]/', $value)
So would \user[2-9]\ be right? ?
Would that match user and/ or user3? ? Thanks
Also that pattern won't match user0 or user1.
I'm hoping this is better
#user?[2-9]#
I don't want to match user0 or user1 just user and user2 through to user9. Thanks
So...
#user[2-9]?# ??
I've not been able to test thus yet Sending this reply from my Mobile.