Gyuri :
How about this: ^[ab]",
2009-11-12T00:02:26
Jed Smith :
Having a hard time understanding you, but...if you're looking for a match if the string starts with \"a\" or \"b\", and a fail otherwise, you could do this:\n\n^(a|b)(.+)$\n\n\nThen, when you get the match's groups, the first group will be either an \"a\" or \"b\" and the second group will be the rest of the string.",
2009-11-12T00:02:39
Robert P :
use the | (pipe) feature:\n\n^a|^b\n\n\nOr, in extended formatting:\n\n^a # starts with an A\n| # OR\n^b # starts with a B\n",
2009-11-12T00:02:42