Pegasus Mail & Mercury

Welcome to the Community for Pegasus Mail and
The Mercury Mail Transport System, the Internet's longest-serving PC e-mail system!
Welcome to Pegasus Mail & Mercury Sign in | Join | Help
in
Home Blogs Forums Downloads Pegasus Mail Overview Mercury Overview

regular expressions feature request: metacharacters for whitespace / non-whitespace etc.

Last post 01-08-2008, 17:03 by carlonike. 3 replies.
Sort Posts: Previous Next
  •  09-02-2007, 12:48

    • Rainer is not online. Last active: 09-06-2007, 6:57 Rainer
    • Top 150 Contributor
    • Joined on 09-01-2007
    • Member
    • Points 170

    regular expressions feature request: metacharacters for whitespace / non-whitespace etc.

    Hi,

    I am missing some more metacharacters for regular expressions known from Linux like whitespace-characters, non-whitespace-characters etc.
    Was it possible to add those?


    Thank you, Rainer

  •  09-03-2007, 3:10

    • David Harris is not online. Last active: 01-06-2009, 22:19 David Harris
    • Top 10 Contributor
    • Joined on 01-31-2007
    • New Zealand
    • Contributor
    • Points 7,970
    • SystemAdministrator

    Re: regular expressions feature request: metacharacters for whitespace / non-whitespace etc.

    The regular expression engine in Pegasus Mail and Mercury considerably pre-dates almost all of the Linux implementations, which means that it has legacy issues (i.e, it is so widely-used that I can't easily change it without invalidating many, many sites' data).

    I *did* expand the regex format a few years back, to include various whitespace metacharacters (/w and /W in particular), but things like "start of line" and "end of line" aren't directly supported because the engine makes them explicit (as a general rule, all matches inherently start at the beginning of a line and end at the end of a line).

    Moving to a different regex format would not be a trivial task - it would require fundamental changes in the way many features in Pegasus Mail and Mercury operate, and would invalidate every current expression stored by any Pegasus Mail or Mercury user.

    You are welcome to suggest extensions to the existing regex engine, though - I will consider any reasonable request if it is feasible and can be done without creating significant backwards-compatibility problems.

    Cheers!

    -- David --

  •  09-03-2007, 10:33

    • Rainer is not online. Last active: 09-06-2007, 6:57 Rainer
    • Top 150 Contributor
    • Joined on 09-01-2007
    • Member
    • Points 170

    Re: regular expressions feature request: metacharacters for whitespace / non-whitespace etc.

    Hi David,

    and thanks for your reply.
    In the meantime I found a help page to content control mentioning more metacharacters (not in help index when you look for "regular"). These were enough for my use.
    Not all work in all places BTW (/x does not in transaction filtering).

     Thank you, Rainer

  •  01-08-2008, 17:03

    Re: regular expressions feature request: metacharacters for whitespace / non-whitespace etc.

    David Harris:

    You are welcome to suggest extensions to the existing regex engine, though - I will consider any reasonable request if it is feasible and can be done without creating significant backwards-compatibility problems.

    I suggest this: http://www.regexpstudio.com/

     Cheers!

View as RSS news feed in XML

Copyright © 2007 David Harris / Peter Strömblad. All Rights Reserved. | Terms of Use | Privacy Statement
Questions/Problems with community.pmail.com? | Visit our Hoster: PraktIT | Pegasus Mail Home Page