Welcome Guest, Not a member yet? Register   Sign In
Regex help!
#5

[eluser]xwero[/eluser]
Doosje the underscore isn't a metacharacter AFAIK so i don't think that is the problem. I tested the regex and the problem is with the (.+) it catches admin_or_higher. So the regex will have to be something like
Code:
/^is_([a-zA-Z]+)_or_?(higher|lower)?$/
I've put the _or_ outside the backets because i think it doesn't matter. If it's inside the barkets you get following result
- admin
-_or_higher
- higher

edit : it's monday for all of us Smile


Messages In This Thread
Regex help! - by El Forum - 03-25-2008, 01:41 AM
Regex help! - by El Forum - 03-25-2008, 01:59 AM
Regex help! - by El Forum - 03-25-2008, 02:04 AM
Regex help! - by El Forum - 03-25-2008, 02:06 AM
Regex help! - by El Forum - 03-25-2008, 02:25 AM
Regex help! - by El Forum - 03-25-2008, 02:27 AM
Regex help! - by El Forum - 03-25-2008, 11:28 AM
Regex help! - by El Forum - 03-26-2008, 10:10 AM
Regex help! - by El Forum - 03-26-2008, 10:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB