Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-03-28 11:05:22


At 08:59 AM 3/28/2002, Stewart, Robert wrote:

>From: Dylan Nicholson [mailto:dylan_nicholson_at_[hidden]]
>> I'm not sure I'm too keen on using regular expressions for
>> finding files, ...
>>

>In your own explanation, you show how two different OSes do it
differently.
>Other OSes probably have other rules. Some may offer no such pattern
>matching rules. On Unix, the globbing is controlled by the shell, so
there
>is no standard other than the de facto standard created by the Bourne
Shell
>that most others follow to one degree or another. However, bash augments

>it with {} which can be used to specify something between alternation and
>sets.
>For example, {abc,pdq,xyz} means substitute each of abc, pdq, and xyz in
>that part of the pattern when looking for matches.
>
>Since there is no standard to follow, regular expressions are a great
>equalizer and are more powerful to boot. I can't see any reason not to
>prefer REs for this task.

Agreed. That was my rationale for specifying RE's.

--Beman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk