Matthew.van.Eerde wrote:
> a{m,n} matches any string of at least m and at most n copies of "a".
> a{m} is a shortcut for a{m,m}
> a{m,} has no upper bound on the length
> a{,n} is a typo, sorry.  Should be a{0,n}.
> a+ is a shortcut for a{1,}
> a* is a shortcut for a{0,}

Oh, and for completeness:

a? is a shortcut for a{0,1}... still greedy (grab the character if you can)
a?? is a shorcut for a{0,1}? which is nongreedy (grab the character if you must)

-- 
Matthew.van.Eerde (at) hbinc.com               805.964.4554 x902
Hispanic Business Inc./HireDiversity.com       Software Engineer

Reply via email to