Adding an optional '.' to the regex so that FIG and Fig followed by a dot are recognized as captions