regexeclipsefindandmodify

Find and replace line matching a pattern in eclipse


What is the regex pattern to find and replace a line in eclipse ?

I am using this pattern \S*\text\S* and it replaces only the word but not the whole line matching the pattern


Solution

  • You can use the following regexp:

    ^.*text.*$