Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #453

Re: Modifying a file

From Martin Wuerthner <spamtrap@mw-software.com>
Newsgroups comp.sys.acorn.programmer
Subject Re: Modifying a file
Date 2011-06-19 16:12 +0200
Organization MW Software
Message-ID <16efd2e551.martin@bach.planiverse.com> (permalink)
References <4390cbe551.cferris@cferris.freeuk.com>

Show all headers | View raw


In message <4390cbe551.cferris@cferris.freeuk.com>
          cferris@freeRemoveuk.com.invalid wrote:

> Hi
> Am trying out the assembler '!ASM' is there a way of Globally changing
> the beginning of a line ie add a colon to the end of the label?
> *******
> label

> to

> label:
> *******

> with !Zap or another program.

There are loads of ways of doing this, e.g., via the command line 
using perl or awk. In the desktop just use the regular expression 
syntax in your preferred editor.

In Zap, for instance, you can add a colon to every word (consisting of 
letters, numbers, underscore and bar characters) on its own at the 
start of a line with nothing else on that line using the following:

Search:\<\{\[a-zA-Z0-9_|]\[a-zA-Z0-9_|]\*\}\n
Replace:&1:\n

-- 
Martin
---------------------------------------------------------------------
Martin Wuerthner         MW Software      http://www.mw-software.com/
        RISC OS Software for Design, Printing and Publishing
---------------------------------------------------------------------

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Modifying a file cferris@freeRemoveuk.com.invalid - 2011-06-19 13:52 +0100
  Re: Modifying a file Martin Wuerthner <spamtrap@mw-software.com> - 2011-06-19 16:12 +0200
    Re: Modifying a file Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-06-19 18:11 +0200
      Re: Modifying a file Alan Wrigley <spamhater@keepyourfilthyspamtoyourself.co.uk> - 2011-06-19 17:57 +0100
      Re: Modifying a file Matthew Phillips <spam2011m@yahoo.co.uk> - 2011-06-19 18:53 +0100
        Re: Modifying a file Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-06-19 23:08 +0200
        Re: Modifying a file "Ste (news)" <steve@revi11.plus.com> - 2011-06-26 21:01 +0100
      Re: Modifying a file Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-06-20 00:04 +0100
    Re: Modifying a file cferris@freeRemoveuk.com.invalid - 2011-06-20 10:54 +0100
      Re: Modifying a file Martin Wuerthner <spamtrap@mw-software.com> - 2011-06-20 23:01 +0200
  Re: Modifying a file Nick Roberts <tigger@orpheusinternet.co.uk> - 2011-06-19 16:39 +0100
    Re: Modifying a file cferris@freeRemoveuk.com.invalid - 2011-06-20 11:28 +0100
      Re: Modifying a file Nick Roberts <tigger@orpheusinternet.co.uk> - 2011-06-20 20:40 +0100
        Re: Modifying a file Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-06-21 07:05 +0200
          Re: Modifying a file cferris@freeRemoveuk.com.invalid - 2011-06-21 10:53 +0100
            Re: Modifying a file Nick Roberts <tigger@orpheusinternet.co.uk> - 2011-06-21 20:03 +0100
              Re: Modifying a file Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-06-22 19:27 +0200
                Re: Modifying a file Alan Adams <alan@adamshome.org.uk> - 2011-06-22 22:33 +0100
                Re: Modifying a file Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-06-23 17:50 +0200
                Re: Modifying a file jgharston <jgh@arcade.demon.co.uk> - 2011-07-04 13:00 -0700
  Re: Modifying a file JussiJ <jussij@zeusedit.com> - 2011-06-20 18:55 -0700

csiph-web