regex - Find and replace first digit with n…
https://superuser.com/questions/996667/find-and-replace-first-digit-with-notepad
Method 1: Menu "Search" > "Replace" (or Ctrl + H). Set "Find what" to [0-9] ([0-9]) ([0-9]). Set "Replace with" to 112. Enable "Regular expression". Click "Replace All". Method 2: Press Ctrl + H to enter the find and replace mode. Select the Regular Expression option. In the "Find what" field, place the regular expression. In the "Replace with" field, enter $1. Click Replace all. Method 3: Press Ctrl + H to enter the find and replace mode. Ensure that 'regular expression' is on. Use ^ [0-9]+. Note that the ^ is used to mark the beginning of the line. Remove it if you need to remove all numbers. Method 4: Use a one-by-one replacement. Enter the dash in Find: ---. Enter the first number in Replace: 1-. Use Alt+R to replace. This will keep focus in the Replace field, allowing you to change the number easily. Use a macro to record this for future reference.
Method 1: Menu "Search" > "Replace" (or Ctrl + H). Set "Find what" to [0-9] ([0-9]) ([0-9]). Set "Replace with" to 112. Enable "Regular expression". Click "Replace All".
Method 2: Press Ctrl + H to enter the find and replace mode. Select the Regular Expression option. In the "Find what" field, place the regular expression. In the "Replace with" field, enter $1. Click Replace all.
Method 3: Press Ctrl + H to enter the find and replace mode. Ensure that 'regular expression' is on. Use ^ [0-9]+. Note that the ^ is used to mark the beginning of the line. Remove it if you need to remove all numbers.
Method 4: Use a one-by-one replacement. Enter the dash in Find: ---. Enter the first number in Replace: 1-. Use Alt+R to replace. This will keep focus in the Replace field, allowing you to change the number easily. Use a macro to record this for future reference.
DA: 40 PA: 40 MOZ Rank: 2