On Sun, Oct 23, 2011 at 01:50:08PM -0600, Doug McNutt wrote:
> These are so much fun...
> 
> [ \t]*?\t[ \t]*
> 
> any number of spaces or tabs, including none of them, followed, without being 
> greedy, by a required tab and some more spaces or tabs.
> 
> whonoze?  All regular expressions are experimental and they often depend on 
> the software reading them.
> 
> I worry about possibly making the second [ \t] not greedy. Ask Larry???

If you make the last thing in a regular expression non-greedy, then it
will always match nothing (in the case of *? or ??) or only once (in the
case of +?).

For example, if you have the text:

  aaaaabbbbb

And you search for:

  a+b*?

Then it will match 'aaaaa'.

Ronald

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to