I\'ll lay out the specifics of what the formula should do, and then show what I have so far. I\'m unsuccessful in trying to work out the Regex syntax for it.
The inputted