http://qs321.pair.com?node_id=515727


in reply to Re: regular expressions with commas?
in thread regular expressions with commas?

Those both match given the string "Blah,Y,X", which has a substring ending with ",Y", but doesn't itself end with that sequence. (It isn't completely clear to me what the OP wanted, though...)