RE: regex tutorial?

Subject: RE: regex tutorial?
From: Andrew Warren <awarren -at- synaptics -dot- com>
To: "Brian -dot- Henderson -at- mitchell1 -dot- com" <Brian -dot- Henderson -at- mitchell1 -dot- com>, "techwr-l -at- lists -dot- techwr-l -dot- com" <techwr-l -at- lists -dot- techwr-l -dot- com>
Date: Mon, 29 Apr 2013 20:55:08 +0000

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?

Learn more: http://bit.ly/13xpg5n

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-

To unsubscribe send a blank email to
techwr-l-leave -at- lists -dot- techwr-l -dot- com


Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwhirl.com/email-discussion-groups/ for more resources and info.

Looking for articles on Technical Communications? Head over to our online magazine at http://techwhirl.com

Looking for the archived Techwr-l email discussions? Search our public email archives @ http://techwr-l.com/archives


Follow-Ups:

References:
RE: regex tutorial?: From: David Artman
Re: regex tutorial?: From: Tony Chung
RE: regex tutorial?: From: Brian.Henderson

Previous by Author: RE: New TechWhirl Poll: Wearable Computers Changing Tech Comm?
Next by Author: RE: regex tutorial?
Previous by Thread: Re: regex tutorial?
Next by Thread: Re: regex tutorial?


What this post helpful? Share it with friends and colleagues:


Sponsored Ads