in reply to Re: regex
in thread How do I detect if a number has a minus sign?

slight change:
m@(-)?(\d+)(?:(/\d+)?)@;
Yours matched "5/".