in reply to Re: regexin thread How do I detect if a number has a minus sign?
slight change: m@(-)?(\d+)(?:(/\d+)?)@; Yours matched "5/".