Regular Expression for a string
jstroud at mbi.ucla.edu
Thu Nov 2 05:11:55 CET 2006
> HI all,
> I need to write a regular experssion for a string which satisfies the
> following a criteria :
> 1) it should start with an alphabet
> 2) it can contain alphabets/digits/_ from second character
> 3) it can contain "[a-z]" or "[0-9]" at the end. but this is optional
> can any one please help me out.... pls....
This is as general as could be constructed given your vague requirements:
You may need to provide examples.
UCLA-DOE Institute for Genomics and Proteomics
Los Angeles, CA 90095
More information about the Python-list