Find, replace, find in files, replace in files, regular expressions
I have records which have spaces in front of them:
I want to bring them to this format:
There is trim trailing spaces but no trim preceding spaces.
- Posts: 7
- Joined: Fri Apr 30, 2010 12:38 am
Run an UltraEdit regular expression Replace All searching for %[ ^t]+ and an empty replace string.
Or if you prefer Unix or Perl regular expression engine use as search string ^[ \t]+ and also an empty replace string.
- Grand Master
- Posts: 4194
- Joined: Thu Jul 29, 2004 11:00 pm
- Location: Vienna
This can be performed without writing a regular expression. You highlight the text and then select Format, Remove Indents and pick a number larger than the biggest gap, say 20 or so. This will move all of the lines flush to the left margin. You won't lose any characters except tabs or spaces from the beginnings of the lines, even when they are already flush.
- Basic User
- Posts: 10
- Joined: Fri Feb 10, 2012 2:22 pm
Return to Find/Replace/Regular Expressions