[TxMt] Re: How can I find and replace carriage returns?

Carpii UK carpii.uk at gmail.com
Sun Feb 7 13:29:12 UTC 2016


Try using a regular expression like this..

http://carpii.homeip.net/skitch/Find-20160207-132857.png

The expression is ^.*::.*$



On 7 February 2016 at 13:20, J Galt <jgaltusa at gmail.com> wrote:

> Can someone please tell me how this could be done?
>
>
> I am having trouble using the "find and replace" command to covert this:
>
> PRODUCTS 2::id
> DOCUMENTS::id
> PRODUCTS 2::note
> PRODUCTS 2::prnt_bleed_lr
> PRODUCTS 2::prnt_bleed_tb
> PRODUCTS 2::prnt_gutter_width
> PRODUCTS 2::prnt_material_width
> PRODUCTS 2::prnt_max_printable_height
> PRODUCTS 2::prnt_max_printable_width
>
> to this:
>
> getValue( PRODUCTS 2::id ; 1) ;
> getValue( DOCUMENTS::id ; 1) ;
> getValue( PRODUCTS 2::note ; 1) ;
> getValue( PRODUCTS 2::prnt_bleed_lr ; 1) ;
> getValue( PRODUCTS 2::prnt_bleed_tb ; 1) ;
> getValue( PRODUCTS 2::prnt_gutter_width ; 1) ;
> getValue( PRODUCTS 2::prnt_material_width ; 1) ;
> getValue( PRODUCTS 2::prnt_max_printable_height ; 1) ;
> getValue( PRODUCTS 2::prnt_max_printable_width ; 1) ;
>
>
> I thought that I could simply:
>
>
>    - find: \r
>    - replace with:  ; 1) ; \r getValue(
>
>
> This does not work. :(
>
>
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20160207/43af54b9/attachment.html>


More information about the textmate mailing list