hey guys, i need a regex to get the login word only login word but if the "?" mark comes after it then accept it and accept the rest of the string but if the string something like that "loginxx?query=value" if the string like that dont accept it but if it looks like that "login?query=value" or just "login" i hope i cleared what i need . thanks guys for any help
hope this what you mean $string = 'login?query=value'; pregt_match('/^login\?/is', $string); // returns true PHP:
Thanks a lot body, thats exactly what i need, i know that it's pretty simple regex but i don't know how to work with regex. Anyway Thanks a lot