ereg to preg conversion

Posted by musoNic80 on Stack Overflow See other posts from Stack Overflow or by musoNic80
Published on 2010-06-18T13:19:37Z Indexed on 2010/06/18 13:23 UTC
Read the original article Hit count: 476

Filed under:
|
|

I'm a complete novice when it comes to regex. Could someone help me convert the following expression to preg?

ereg('[a-zA-Z0-9]+[[:punct:]]+', $password)

An explanation to accompany any solution would be especially useful!!!!

© Stack Overflow or respective owner

Related posts about php

Related posts about regex