Tuesday, November 9, 2010

What's the equivalent of this Javascript regexp in PHP?

Programmer Question

I have this js regexp which I need in PHP code now instead:



var alphaExp = /^[a-zA-Z������\s\-]+$/;
if (!fld.value.match(alphaExp)) {
//ERROR OUTPUT HERE
}


Whats the equivalent to this in PHP?



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails