On 9/21/06, David Kelly <[EMAIL PROTECTED]> wrote:
On Thu, Sep 21, 2006 at 10:50:58AM -0400, Jacob Haller wrote:
> >
> >How can I remove trailing spaces in the document?
>
> Regular _expression_:
>
> Find ' +$' (a space followed by +$) and replace with nothing.
Methinks [\t ]+$ might be better as it will catch tabs.
[\t ] matches the characters listed inside [], a tab and a space.
+ for "one or more occurances"
$ for end of line.
\s+$ also does the trick.
The "Grep Reference" under the Help menu in BBEdit is an excellent starting point for those unfamiliar with regular expressions.
--bernie
