Find and replace
Every match changes at once. Write \n for a line break.
What does it do to a real text?
Rs. made the rupee sign, in a price list:
Before
Rs. 450 for the first copy
Rs. 300 for each copy after
After
₹450 for the first copy
₹300 for each copy after
More examples
A list made one line: find \n, replace with a comma and a space.
Before
Pune
Nagpur
Nashik
After
Pune, Nagpur, Nashik
Whole words only: replacing cat with dog without it gives “The dog sat by the dogegory list.”; with it, “The dog sat by the category list.”
A pattern: find (\d\d)/(\d\d)/(\d{4}) and replace with $3-$2-$1 to turn “Paid on 05/12/2026 and 19/11/2026” into “Paid on 2026-12-05 and 2026-11-19”.
What rules does it follow?
- Every match changes, from the start of the text to the end; a match never overlaps the one before it.
The other 5 rules
- Match case off (at the start): rs. finds Rs. and RS. as well, and the replacement goes in exactly as you typed it.
- Whole words only: a match must not have a letter or a digit right before or after it, so cat leaves category alone.
- \n in either box means a line break and \t a tab; write \\ for a backslash. Untick it to find a backslash and an n as they are.
- Pattern: the Find box is read as a regular expression, the kind JavaScript uses, and $1 in the Replace box puts back the first bracketed group. A pattern with a mistake changes nothing, and the line under the boxes says what is wrong.
- Your text stays in the first box and the result is in the second, so nothing is lost until you copy it.
What do people ask?
How do I replace line breaks with commas?
Find \n and replace with a comma and a space: Pune, Nagpur and Nashik on three lines become “Pune, Nagpur, Nashik”.
How do I put each item on its own line?
The other way round: find a comma and a space, and replace with \n.
How do I change the order of a date?
With Pattern ticked, as in the last example above: 2026-11-19 from 19/11/2026.