Find/Replace in eclipse using regex

We can find a regex pattern and do a replace as mentioned below. This is very helpful when we are doing bulk replacing.
eg : Comment all the lines containing a word (selectedWord)

Steps :

  1. Ctrl + F
  2. Find ^.selectedWord.$
  3. Replace //$0
  4. Options : Check Regular Expressions

#eclipse, #ide, #utility