[Geany] RegEx search/replace start of line

Lex Trotman elextr at xxxxx
Sun Mar 28 02:38:08 UTC 2010


On 28 March 2010 13:15, Len Philpot <len at philpot.org> wrote:

>  *[ From Geany general discussion list (Ross McKay) on Saturday, March 27,
> 2010 ]
> *
> *> Please help out a dope. I know I've done this before, many times, and
> > not had a problem, but today... not so much.
> *
>
> *> Geany built from r4788, Fedora 11 x86-64.
> *
>
> *> I want to prefix a bunch of lines with something, e.g. spaces or a tab
> > or, well, anything. Let's say X for the sake of picking an easy example.
> *
>
> *> Search: ^
> > Replace: X
> > Use regular expressions: ticked
> *
>
> I used :
>
> Search for:  ^(.)
> Replace with: X\1
> Use regular expressions: Enabled
>
> and ...
>
> example
> example
> example
>
> was replaced by:
>
> Xexample
> Xexample
> Xexample
>
> Is that what you're looking for?
> --
> Len Philpot - l e n @ p h i l p o t . o r g   *(no spaces)
> *><>   http://philpot.org/ - http://lphilpot.zenfolio.com
>       Read my story: http://www.mostimportantthing.org
>
>
Hi Ross,

It seems to be a bug in SVN trunk, I can confirm it works with 0.18  and
r4577 but not current head.

Cheers
Lex



> _______________________________________________
> Geany mailing list
> Geany at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/users/attachments/20100328/c464d74f/attachment.html>


More information about the Users mailing list