jaywhy13
08-12-2005, 03:10 PM
I have the following regex that will match any number from 1-999. Here it is:
"([1-9]\d{0,2})(?!-| -|\d-|\d -)"
I need to add to the front.. there should be NO greater than or less than signs or dashes at the start of the string. The only thing allowed at the start of the string is a space or it can be the first character in the string. Please help.
The second submatch simply looks ahead to make sure that no dashes are found trailing after the match.
"([1-9]\d{0,2})(?!-| -|\d-|\d -)"
I need to add to the front.. there should be NO greater than or less than signs or dashes at the start of the string. The only thing allowed at the start of the string is a space or it can be the first character in the string. Please help.
The second submatch simply looks ahead to make sure that no dashes are found trailing after the match.