All Tags »
php regular exp... »
alphanumeric with restraints
Sorry, but there are no more tags available to filter with.
-
Hello.
I'm trying to write a regular expressin that will parse filenames for prefix, revision, page, and extension. This is what I have so far.
/^(.*)_(\d*).*__(\d*)\.(.*)$/i
This works for filenames in this form.
418C_1(SPACER)__2.pdf
and pulls out
prefix:418C Rev: 1 Page: 2 File ...
-
I'm looking to create a regular expression in PHP that does the following. Keep in mind it is for a registration form where a text field must contain the following:
Must be at least 8 characters in length and the field must contain at least 1 number and 1 alphabetic character. I came up with the solution below but IT DOES NOT WORK ...