Re: regex tutorial?

Subject: Re: regex tutorial?
From: Tony Chung <tonyc -at- tonychung -dot- ca>
To: Andrew Warren <awarren -at- synaptics -dot- com>
Date: Mon, 29 Apr 2013 14:32:19 -0700

I was referring more to the different processors' handling of multi-line
strings, greedy/non-greedy selectors, and backreferences.

They are all similar, but some functions just don't work when using the
command line, or in text editors that happen to allow regexp search and
replace.

-T


On Mon, Apr 29, 2013 at 1:55 PM, Andrew Warren <awarren -at- synaptics -dot- com>wrote:

> 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


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

Previous by Author: Re: regex tutorial?
Next by Author: Re: Best explanation why NOT to run as administrator/root
Previous by Thread: RE: regex tutorial?
Next by Thread: Expanding last week's poll question: how ubiquitous computing is changing tech comm


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


Sponsored Ads