Can I use javascript regular expression in php as it is.

Posted by Shantanu Gupta on Stack Overflow See other posts from Stack Overflow or by Shantanu Gupta
Published on 2010-04-12T11:18:32Z Indexed on 2010/04/12 11:23 UTC
Read the original article Hit count: 294

Filed under:
|
|

I am using a regular expression in javascript and want to do server side validation as well with the same regular expression. Do i need to modify it to make it compatible or will it run as it is.

How to use PHP regular expresion. Please provide a small example.

Thanks in Advance

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript