TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Brian -dot- Henderson -at- mitchell1 -dot- com [Brian -dot- Henderson -at- mitchell1 -dot- com] wrote:
> The tutorial is good as a general primer on the principals of RegEx, but individual programs
> and applications will vary in the ways regular expressions are created.
>
> For example, in the two main plain text editors I use:
> TextPad: ^ as the first character of an RE anchors the expression to the beginning of the line.
> EditPlus: ^ as the first character of an RE means none of the enclosed characters may match
> the target character.
But that's not a difference between regex parsers; that double usage of "^" is common to all POSIX/Perl regular-expression parsers. If the "^" is the first character inside a pair of brackets, it means "match any character not within the brackets", but if the "^" is unbracketed it means "match start of line" (or start of string).
-Andrew
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>From our sponsor Doc-to-Help: Want to see a Doc-To-Help web-based Help sample with DISQUS for user commenting?