PHP regular expression, how do search string for (NNNN)?

jumpingrightin

New member
How do you search a string in PHP using a regular expression to locate the year in a string where, for example, "(1900)" occurs? The years of course will be anywhere from 1900 to 2011. I'm thinking it's something like ([0-9][0-9][0-9][0-9]), but I don't know the syntax or function in PHP to do this search in a string. Thanks!
 
Back
Top