how do I write this regular expression?
Posted on 2008-10-10
I want to write a regular expression that is satisfied by zero or more instances of:
a string beginning with one alphanumeric character, and followed between 2 and 29 additional characters that can be alphanumeric, underscores, periods, or dashes, followed by one or more white spaces
so far I have
but even submitting
does not satisfy this. also, I cobbled this together from another regular expression and I'm not sure what the "^ " after [:space:] does. I assume this is not relevant to my current application?