This is my regex:
^.+\/.+\.sql.+$
it matches
/somedir/abc.sql.20121212
but it doesn't match
/somedir/abc.sql20121212
/somedir/abc.sql_20121212
What am I doing wrong? Shouldn't sql.+$
mean match 'sql' and at least one of any character after it?
UPDATE: The above regex does indeed work. I was getting unexpected results because I hadn't saved the config file in which the regex is stored (DUH !!) The previous value was ^.+\/.+\.sql\..+$
which means has to be 'sql.' and at least one of any character after it. Sorry for the false alarm.