i have a problem.
i what to get info about my string have ordre chater in ( a-z A-Z 0-9 and - _ ) if my string have ordre its return false or not return true.
i hob i can get help to this problem.
i have a problem.
i what to get info about my string have ordre chater in ( a-z A-Z 0-9 and - _ ) if my string have ordre its return false or not return true.
i hob i can get help to this problem.
If I'm reading your question correctly, you want to validate if a string only contains a-z A-Z 0-9 and -_. Right?
/^[a-zA-Z0-9\-_]*$/
...should work.
Not sure I understand your english. You want to know if it contains characters other than a-z, A-Z, 0-9, - and _?
If so, ereg($string, '[^a-zA-Z0-9_-]')