Okay, so let's say I have a textbox that you can enter something like
Sebastian Soria 3'|12' Digano
Nam Tae-Hee 23', 45'|33' Julio Vezbek
And that textarea does this upon focusing your mouse out of it, the texarea gets read line by line and each line looks for its delimeter "|" and then splits it up and divides that in home and away scorer.
Here's a JS fiddle: http://jsfiddle.net/cu24k/
I could easily do it so if it's above 10, to scrap the last 4 characters of " XX'" and 3 do " X'" and split that up and color/bold it. But then I realized, what if they scored more than once? It would be 23', 45' or longer!
So, I thought... what if I can just take apart any apostrophe, comma and number and color/bold that.
Is there a way?
scrap the last 4 characters of " XX'" and 3 do " X'" and split that up and color/bold itCould you try to rephrase this? Or show it being done in your fiddle? I can't be the only one who doesn't understand what you're trying to say there.Testing '4then I could take the'4by taking the last -3 usingsubstrof the string or -4 if it was it was more than 9 minutes.