How do I replace an entire line of text that has a certain c

Tool for Search and Replace across multiple files.
User avatar
dan

How do I replace an entire line of text that has a certain c

Post by dan »

How do I replace an entire line of text that has a certain character on it?
User avatar
Fool4UAnyway

Re: How do I replace an entire line of text that has a certa

Post by Fool4UAnyway »

You simply look for that specific character and accept anything that surrounds it.

Find:
^.*#.*$

Replace by:
{enter your desired text here}

. = dot, means "any character"
* = asterisk, means: accept any consecutive string of the preceding character(s), requiring none at all
# : enter your specific character here instead
Post Reply