bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25445: Bug (Trunk): Redirect fails in Duckduckgo


From: Eli Zaretskii
Subject: bug#25445: Bug (Trunk): Redirect fails in Duckduckgo
Date: Mon, 16 Jan 2017 21:24:35 +0200

> From: Noam Postavsky <address@hidden>
> Date: Mon, 16 Jan 2017 13:24:08 -0500
> Cc: address@hidden
> 
> On Mon, Jan 16, 2017 at 1:12 PM, Achim Gratz <address@hidden> wrote:
> > address@hidden writes:
> >>        (when (or (string-match "^\\([0-9]+\\) *;.*url=\"\\([^\"]+\\)\"" 
> >> refresh)
> >> +                (string-match "^\\([0-9]+\\) *;.*url=\'\\([^\']+\\)\'" 
> >> refresh)
> >>                  (string-match "^\\([0-9]+\\) *;.*url=\\([^ ]+\\)" 
> >> refresh))
> >
> > Why not use a regex with alternatives and do just a single match?
> 
> Stefan made the same suggestion:
> https://lists.gnu.org/archive/html/emacs-devel/2017-01/msg00268.html
> 
> I'm not entirely sure it's an improvement.

Neither am I: it would make the regexp harder to interpret (for
humans).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]