[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is the difference between looking-at and an anchored search?
From: |
Miles Bader |
Subject: |
Re: What is the difference between looking-at and an anchored search? |
Date: |
Thu, 17 Jul 2008 21:35:44 +0900 |
"Lennart Borgman" <address@hidden> writes:
>> If you want to reject matches that extend past some point, just do
>> something like:
>>
>> (and (looking-at REGEXP) (<= (match-end 0) BOUND))
>
> Thanks Miles,
>
> Yes, that is one possibility. But then perhaps I would assume that
> re-search-forward better might optimize that search since it can (in theory)
> cut off the searching at BOUND. In the case I am looking at performance is
> important.
Why don't you time it?
-Miles
--
Is it true that nothing can be known? If so how do we know this? -Woody Allen
Re: What is the difference between looking-at and an anchored search?, David Kastrup, 2008/07/17