I have a scrambled text with many codes with 8 numbers each, started with 403. How to extract only these codes from the text?
-
There is no more than 1 of these codes per line. If I were able to manage to keep the whole line of text in which this code is in, it would be even better but its not needed.
I guess something that would delete every line without such code would be enough.
-
If you want help with a search/replace problem, you need to give us more to go on than that. Best practice is to include a half-dozen to a couple-dozen lines of example “before” and “after” text (using the
</>
button to put them in text boxes) – make sure if there’s sensitive/confidential info that you use dummy data that looks like the original (formatted the same, same combos of numbers vs letters, etc) but doesn’t reveal your secrets. Also make sure that your examples show some things that should match and some that don’t.See the Template for Search/Replace Questions, linked below, for more of how to ask such questions.
----
Useful References