David B Funk wrote: > what is the meaning of ".{,50}?" 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,}
All of these are greedy by default. Putting the ? after them means they match the shortest possible string, rather than the longest. So .{0,50} means "zero to fifty characters of any kind" -- Matthew.van.Eerde (at) hbinc.com 805.964.4554 x902 Hispanic Business Inc./HireDiversity.com Software Engineer