[Geany] RegEx search/replace start of line
Len Philpot
len at xxxxx
Sun Mar 28 02:15:28 UTC 2010
[ 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/users/attachments/20100327/eead918e/attachment.html>
More information about the Users
mailing list