- Posted by
- Thank you very much for your solutions! Now I have to figure out what the expressions mean.Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- mikerain
Jul 05, 2023
- Thanks a lot for your thorough information. My files are plain ASCII, so Unicode isn't a problem and [0-9] or \d are both fine. I'm using this regex in a macro that cleans phone numbers by removing extra characters. I run the macro when the cursor is at the end of the line because there might be o...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- mikerain
Jul 05, 2023
- Wow, thanks a lot Fleggy! That works beautifully, except in one rare case that I forgot to mention: With US/Canada numbers, people sometimes put a 1 before the 10-digit number. For example, 1-234-567-8901. In that case, if I search "Previous" from the end of the line, your regex finds 234-567-8901,...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- mikerain
Jul 05, 2023
- I'm looking for a Perl regular expression to find a 10-digit number with optional spaces or other characters inside it. The regex should find these examples: 1234567890 123-456-7890 123/456-7890 123.456.7890 123 456 7890 This UltraEdit regex works: [0-9][~0-9]++[0-9][~0-9]++[0-9][~0-9]++[0-9][~0-9]+...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- mikerain
Jul 05, 2023
- Thank you very much Mofi. That raises another question which I will pose in a new thread.Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- mikerain
Jul 05, 2023
- If the cursor is at the end of this line: 0123456789 ... and I search for UltraEdit regular expression [0-9] (any digit), and click Previous , it should find the digit 9 . Instead it skips the digit 9 and finds the digit 8 . UltraEdit for Windows v14.00 does not do that, but UltraEdit 2023.0.0.50 do...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- mikerain
Jul 02, 2023