I\'m trying to parse a document that has reference numbers littered throughout it.
Text text text {4:2} more incredible text {4:3} much later on {22
Try this:
{[0-9]{1,3}:[0-9]{1,3}}
The {1,3} means "match between 1 and 3 of the preceding characters".
{1,3}