2
1
I have a bunch of text I need to format via HTML, my main problem being that there's a bunch of digits at the beginning of certain words that I need to wrap with HTML tags. I'm trying to think up a vim regex that can help me achieve this but the furthest I've gotten is this:
:s:\(\d\):<sup>\1<\/sup>
This however only changes the first number in the line and not anything after that. Any ideas?
Welcome to Super User! Your answer does not provide any information why or how the program can answer the question. Please take a look at these suggestions on how to provide great software recommendations.
– Daniel Beck – 2012-09-20T15:31:59.457Thanks for the suggestions. I though that the link was self-explanatory. – Atropo – 2012-09-25T10:04:31.163