[TxMt] Re: How do I search replace word

Caius Durling caius at caius.name
Wed Jun 2 23:16:03 UTC 2010


On 2 Jun 2010, at 20:10, Leigh Daniels wrote:

> This worked with your example data:
> 
> Find:
>    ^([0-9]+)$
> 
> Replace:
>    $1,
> 
> **Leigh
> 
> On Wed, Jun 2, 2010, Afflictedd2 <edvelez.g at gmail.com> wrote:
> 
>> 1
>> 34
>> 244
>> 5
> 


Also:

* Select all the lines you want to edit,
* Click "Text" Menu -> "Edit Each Line in Selection"
* Type ","

That'll do every line in the selection though, whereas the find/replace _only_ matches numbers. If you wanted to find/replace on all lines, not just numerical I'd use `$' as the find string and replace with simply `,'.

C
---
Caius Durling
caius at caius.name
+44 (0) 7960 268 100
http://caius.name/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100603/82da2678/attachment.html>


More information about the textmate mailing list