Formatting
Find and replace is a search you can see, then a substitution. Leave Find empty and the page stops with “Enter text or a pattern to find.” It will not pretend to rewrite the sentence. With Find set to socks and Replace with set to gloves, “Odd socks in the dryer.” becomes “Odd gloves in the dryer.” The capital O, the spaces, and the period stay.
Match opens on literal, and case sensitive opens on yes. Literal mode looks for those exact characters. A dollar sign in the replacement is a dollar sign. Replacing socks with $& inserts the characters $&, not the text that was found. Turn case sensitive off and Socks and socks both match, still with a literal replacement. Regex mode is the other match. Find (\d+) and replace with [$1] turns “12 34” into “[12] [34]”. In regex mode the replacement is a pattern, so $1 means the first group. An invalid pattern fails instead of changing the text.
Every match is replaced, not just the first. The flags are global. There is no “nth hit” control. If you needed to see the hits without changing them, a regex tester lists matches. This page returns the rewritten string.
Odd socks in the dryer. Find socks, replace with gloves, literal, case sensitive.
Odd gloves in the dryer. One replacement. The period stays. An empty Find box would have stopped with an error instead.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
The page stops and says to enter text or a pattern. “Odd socks in the dryer.” is not modified.
Literal mode inserts the replacement characters. $& is four characters, not “the match.” Regex mode is where $1 and $& have pattern meanings.
No. Every match is replaced. “socks socks” with a literal gloves becomes “gloves gloves”.
Switch Match to regex, Find (\d+), Replace with [$1]. “12 34” becomes “[12] [34]”.
Not while case sensitive is yes. Turn it off and both cases match. The replacement text is inserted as you typed it, not restyled to the original case.