<html><head><title>Re: [Geany] RegEx search/replace start of line</title>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
</head>
<body>
<span style=" font-family:'arial'; font-size: 9pt; color: #008080;"><i>[ From Geany general discussion list (Ross McKay) on Saturday, March 27, 2010 ]<br>
</i><span style=" font-size: 10pt; color: #000000;"><br>
<span style=" font-size: 9pt; color: #000080;"><i>> Please help out a dope. I know I've done this before, many times, and<br>
> not had a problem, but today... not so much. <br>
</i><span style=" font-size: 10pt; color: #000000;"><br>
<span style=" font-size: 9pt; color: #000080;"><i>> Geany built from r4788, Fedora 11 x86-64.<br>
</i><span style=" font-size: 10pt; color: #000000;"><br>
<span style=" font-size: 9pt; color: #000080;"><i>> I want to prefix a bunch of lines with something, e.g. spaces or a tab<br>
> or, well, anything. Let's say X for the sake of picking an easy example.<br>
</i><span style=" font-size: 10pt; color: #000000;"><br>
<span style=" font-size: 9pt; color: #000080;"><i>> Search: ^<br>
> Replace: X<br>
> Use regular expressions: ticked<br>
</i><span style=" font-size: 10pt; color: #000000;"><br>
I used :<br>
<br>
Search for:  ^(.)<br>
Replace with: X\1<br>
Use regular expressions: Enabled<br>
<br>
and ...<br>
<br>
example<br>
example<br>
example<br>
<br>
was replaced by:<br>
<br>
Xexample<br>
Xexample<br>
Xexample<br>
<br>
Is that what you're looking for?<br>
<span style=" font-family:'bitstream vera sans mono'; font-size: 9pt;">--<br>
<span style=" font-family:'arial'; font-size: 10pt; color: #666699;">Len Philpot<span style=" font-family:'bitstream vera sans mono';"> -<span style=" font-size: 9pt;"> l e n @ p h i l p o t . o r g   <i>(no spaces)<br>
</i>><>   http://philpot.org/ - http://lphilpot.zenfolio.com<br>
      <span style=" font-family:'arial';">Read my story:<span style=" font-family:'bitstream vera sans mono';"> http://www.mostimportantthing.org<span style=" font-family:'arial'; font-size: 10pt; color: #000000;">  </body>