DEV Community

Pulkit
Pulkit

Posted on

Quick regex to find a word and delete the whole line

Use the replace command in your IDE, Android studio and run this regex
^.\b(WORD_HERE)\b.$\r?\n
Replace WORD_HERE with the word you are trying to find and keep the replacing text as blank.

Top comments (0)