|
|
On 31 Aug 2006 09:43:51 -0700, "Peter T. Daniels"
<grammatim@xxxxxxxxxxx> wrote in
<news:1157042631.286437.323760@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
in sci.lang:
> Brian M. Scott wrote:
>> On 31 Aug 2006 09:27:05 -0700, "Peter T. Daniels"
>> <grammatim@xxxxxxxxxxx> wrote in
>> <news:1157041625.494469.160010@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
>> in sci.lang:
[...]
>>> You can search for:
>>> any number of characters *
>>> spaces or punctuation |
>>> any one character ?
>>> beginning of a line ^
>>> end of a line $
>>> any one of [ab]
>>> any except [^ab]
>>> any from-to [a-f]
>>> Though I don't see why you'd want to search ^ or $.
>> <chuckle> I'm reminded of an earlier topic: all of these
>> except the 2nd and 3rd are standard regular expressions.
> Really? Searching for Any Character isn't a "standard regular
> expression"?
There is a symbol that matches any character, but it's '.',
not '?'; '?' has another meaning.
> And why would you want to search for a line start or end?
You might well want to search for occurrences of a
particular string only at the beginning of a line. For
instance, if I'm searching a list of heraldic blazons for
coats that have a red field, searching for 'gules' isn't
very helpful, but searching for '^gules' is.
[...]
Brian
|
|