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

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

Re: Quickie - Regexp for a string not at the beginning of the line


From: PJ Weisberg
Subject: Re: Quickie - Regexp for a string not at the beginning of the line
Date: Thu, 25 Oct 2012 19:19:11 -0700

On Thursday, October 25, 2012, Rivka Miller <address@hidden> wrote:

> Hello Programmers,
>
> I am looking for a regexp for a string not at the beginning of the
> line.
>
> For example, I want to find $hello$ that does not occur at the
> beginning of the string, ie all $hello$ that exclude ^$hello$.

How about a zero-width lookbehind for any character?

--
-PJ

Gehm's Corollary to Clark's Law: Any technology distinguishable from
magic is insufficiently advanced.

reply via email to

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