Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • (?= ) is a zero width positive lookahead assertion, so the "cursor" is being reset after the check. Commented Jan 25, 2010 at 19:56
  • He doesn't want to assert a letter at the start, only that the string contains a letter. Commented Jan 25, 2010 at 20:01
  • No probs! How'd the regex from my answer fair? Commented Jan 25, 2010 at 21:41
  • Then we're missing a piece of the puzzle somewhere. The example strings you gave all match the pattern from your question. Do your program's actual inputs, for example, contain more than than the 6- to 32-character fields? Commented Jan 25, 2010 at 21:44
  • But they don't match. Try it in .NET 1.1 in IE. Commented Jan 26, 2010 at 23:49