Click here to Skip to main content
15,886,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'am using VS 2010 with MS Word 2010 Vb.Net, I want to find and replace a string value in

Superscript such as
Ca++
Here the
++
are superscript

Suggest me to get the solution.

Thanks in advance.
Posted

1 solution

There is few ways to achieve that.

For example:
1) method
Using MS Word inbuilt Find[^] method.
How to: Programmatically Search for and Replace Text in Documents[^]

2) method
Using Regex[^]
The pattern could looks like:
HTML
(?<superscript>\+{1,})


For further information, please see: Regular Expressions Tutorial[^]
 
Share this answer
 
v3
Comments
[no name] 28-Jul-14 3:38am    
Can you able to give a solution in Detail manner

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900