I have an issue with something that seems rather trivial but it ain't working, so I'm wondering what I am overlooking.
I have following string :
Just some blablabla with some notes on the end *1 *2
and I need to strip the 'notes' from the string so that it becomes as follows :
Just some blablabla with some notes on the end
My regex is as follows :
regex.Pattern = "^(.*)(\*[0-9]+\s?)+$"
So basically what it should do is look at the end of the string to see if it can find an asterisk followed by one or more integers and an optional space. Unfortunatly if I run this the way I stated it only removes the last note, and leaves the first as below
Just some blablabla with some notes on the end *1
Where is my logic going wrong ?
Thanks in advance!