Regex tester
Pattern
Input
Replace(s, "2","1") 
s.Replace(s, "2","1") Replace(s, "2","1") 
Options
Replacement
Click the context tab to see replacements.
2 matches found in about 6 milliseconds.
IndexPositionMatched String
00Replace(
144Replace(
Replace(s, "2","1") 
​s.Replace(s, "2","1") Replace(s, "2","1") 
  1. empty string
  2. s, "2","1")
    s.Replace(s, "2","1")
  3. s, "2","1")