docs.roxen.comBack to normal mode
DocsRoxenWebServer 4.5Web Developer ManualText Tags
Copyright © 2012, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com

<sed></sed>

Provided by module: Tags: SED

Adds the <sed> tag, to emulate a subset of sed operations in rxml.


Attributes

suppress

lines

chars

split="separator"

append

prepend

<destination></destination>

Provided by module: Tags: SED

Tells which destination to store the edited string if other than screen. Must be either variable or cookie.


Attributes

variable="variable"

cookie="cookie"

<e></e>

Provided by module: Tags: SED

The edit command to apply to the input. It is possible to control which lines that will be affected by using <e>[first line],[last line][command]</e>. It is possible to use relative line numbers using '+' and '-' or using regexp by start and end the regexp with '/'


  <set variable="var.foo">Foo. Foo. Foo. Foo. Foo. Foo. Foo.</set>

  <sed split=".">
    <source variable="var.foo" />
    <e>3,+3y/o/u/</e>
  </sed>
Foo. Foo. Fuu. Fuu. Fuu. Fuu. Foo.

D

Delete first line in space

G

Insert hold space

H

Append current space to hold space

P

Print current data

a

Insert.

Usage: a[string]

c

Change current space.

Usage: c[string]

d

Delete current space

h

Copy current space to hold space

i

Print string

Usage: i[string]

l

Print current space

p

Print first line in data

q

Quit evaluating

s

Replace

Usage: s/[regexp]/[with]/[x]

y

Replace chars

Usage: y/[chars]/[chars]/


Attributes

rxml

Run through RXML parser before edit


<raw></raw>

Provided by module: Tags: SED

Raw, unparsed data.


<rxml></rxml>

Provided by module: Tags: SED

Data run through RXML parser before edited.


<source></source>

Provided by module: Tags: SED

Tells which source to read from if <raw> or <rxml>is not used. Must be either variable or cookie.


Attributes

variable="variable"

cookie="cookie"

rxml

Run through RXML parser before edit