Craig Gallagher Craig Gallagher - 1 year ago 100
C# Question

Regular expression lowercase letter followed by a number

I'm trying to get the hang of regular expression. I'm scanning through an xml file and I want to do is find any word starting with a lowercase letter fallowed by a number e.g.

I assume it's something like
[a-z 0-9]
but it's finding single characters instead of a whole word. Any ideas on how to do this would really be appreciated.

Answer Source

[a-z]\d+ will work just fine.

It looks for any lowercase letter followed by any amount of digits.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download