I am currently formatting a book that has crazy superscript and subscript requirements. It is equivalent to a medical dictionary. Anyway the current grep expression I am having trouble with is superscripting for references. For example,
prenatal exposure and exposure to acetaminophen in the first year of life has also been linked to development of asthma later in life. [9, 10, 11, 12, 13]
All of the numbers in brackets have to be superscripted. I have used Grep for making the brackets disappear but I can only get the 9 to be superscript. Sometimes I can get the 9 and one comma or the 9 and 13. Another problem I am facing is that all of the references are placed inbetween brackets but some are formatted like the one above and some are formatted like:
[4-6]
The grep expressions I am currently using are
style: disappear
(?<=d)]
Style: Disappear
[(?=/d)
Style: superscript
(?<=[)d+(?=])
I've tried a lot of other combinations but haven't figured it out. Any ideas?