Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder3.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Martin Wuerthner Newsgroups: comp.sys.acorn.programmer Subject: Re: Modifying a file Date: Sun, 19 Jun 2011 16:12:52 +0200 Organization: MW Software Lines: 33 Message-ID: <16efd2e551.martin@bach.planiverse.com> References: <4390cbe551.cferris@cferris.freeuk.com> X-Trace: individual.net 8OEzcRu68gZYe13nZfJRVA2JOx7aJ3Opm5RqPCsh3/Ti28ccU6 X-Orig-Path: bach.planiverse.com%martin Cancel-Lock: sha1:aWsU0MToh7iNXGa8upDVrRTL4mM= X-Editor: EmailEdit 6.00 User-Agent: Messenger-Pro/6.00 (MsgServe/6.00) (RISC-OS/5.16) NewsHound/v1.50-32 Xref: x330-a1.tempe.blueboxinc.net comp.sys.acorn.programmer:453 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 ---------------------------------------------------------------------