Regular Expressions is a power tool that is used in Web Application for verifying valid emails address, password strength among other things. If you have not worked in Web Development environment, you are missing on this powerful tool.
Interesting regular expressions search is available in Visual Studio. Although Visual Studio’s regular expression does not comply with the regular expression implemented in other languages like PHP, Ruby etc, they still can be used in very powerful way.
Putting “,” at the end of a link
Example you have a scenario where you just copied the integer data as follows
12345 34455 12244
(assume there are a lot of them)
You want to put a , at the end of each line, who do you do it? You can do it using regular expression search and replacement.
Bring in the Search Dialog by Ctrl+F. Screen shot is attached.
In this case choose the $ End of Line. Now when you click find, it will stop at the end of every line.
Next click the “Quick Replace” tab. And enter “,” in the replace kewyord (without the quotes). And click replace.
You may want to hit replace each time you want to insert a comma. Doing replace all will put , at the end of every line which is not desirable. You can do that with a more complex regular expression. But this is just a quick toturial.