I think the key to understanding how it works is that the asterisk matches *zero* or more occurrences. So /X*/ matches 'Xabc', 'abc', etc. Karri