Register to post in forums, or Log in to your existing account
 

 Related 
Contents
Modification
  %concat
  %delete
  %insert
  %remove
  %subchar
  %subregex
  %trim
  %trimleft
  %trimright
Function Reference
  %abs
  %additem
  %addkey
  %alarm
  %alias
  %ansi
  %array
  %arrget
  %arrhigh
  %arrset
  %ascii
  %average
  %begins
  %bitand
  %bitnot
  %bitor
  %bitxor
  %btncol
  %btnenable
  %btnimage
  %case
  %char
  %charcomment
  %charnotes
  %class
  %clip
  %color
  %colorname
  %comactive
  %comcreate
  %comget
  %comset
  %concat
  %copy
  %count
  %countlist
  %crtonl
  %db
  %dbget
  %dblist
  %dbmax
  %dbmin
  %dde
  %ddeclose
  %ddemacro
  %ddeopen
  %ddepoke
  %defined
  %delete
  %delitem
  %delkey
  %delnitem
  %destroom
  %dice
  %diceavg
  %dicedev
  %dicemax
  %dicemin
  %doorname
  %dups
  %ends
  %eval
  %exec
  %expand
  %expanddb
  %expandlist
  %filesize
  %find
  %float
  %format
  %getglobal
  %grep
  %gsl
  %handle
  %if
  %insert
  %int
  %inwalk
  %isfloat
  %iskey
  %ismember
  %isnumber
  %item
  %lastdir
  %left
  %leftback
  %len
  %literal
  %look
  %lower
  %match
  %mapfilter
  %maplocked
  %mapquery
  %mapvnum
  %max
  %mcp
  %min
  %mod
  %mss
  %nextdir
  %nltocr
  %norm
  %null
  %number
  %numbuttons
  %numitems
  %numkeys
  %numparam
  %numrec
  %numrooms
  %numwords
  %numzones
  %param
  %parsemode
  %pathcompress
  %pathexpand
  %pathfrom
  %pathreverse
  %pick
  %pop
  %portal
  %portalenabled
  %pos
  %prompt
  %proper
  %push
  %query
  %quote
  %random
  %read
  %regex
  %remove
  %repeat
  %replace
  %replaceitem
  %reversedir
  %right
  %rightback
  %roomcol
  %roomcom
  %roomcontents
  %roomcost
  %roomdesc
  %roomexit
  %roomflags
  %roomid
  %roomkey
  %roomkind
  %roomlink
  %roomload
  %roommob
  %roommode
  %roomname
  %roomnote
  %roomnum
  %roomobj
  %roomportal
  %roomvnum
  %roomzone
  %round
  %setglobal
  %sort
  %sqrt
  %state
  %stdev
  %string
  %stripansi
  %stripq
  %subchar
  %subregex
  %sum
  %time
  %trigger
  %trim
  %trimleft
  %trimright
  %upper
  %viewrec
  %walk
  %walkactive
  %walkconfirm
  %walkmode
  %walkroom
  %window
  %word
  %write
  %yesno
  %zonename
  %zonenum
  %zonevnum
Related Links:
  Setting up the automapper.
  Using MXP
  Command Reference
  #ONINPUT
  Function Reference
  %alias
  %remove
  %replace
  Image
  Clear
  Replace
  RegReplace
  EncodeURL
  Regular Expression Options
  Text
  ReplaceChild
  Tutorial - Web browser (Part 1)
  Documentation Viewer
  SelText
  SearchText
  Cell
  Event Handling
  Example: Databases
  OnCDATASection
  %alias
  Modification (strings)
  %db
  %remove
  %replace
  #ONINPUT
  Tab Completion
  Command line
  Keyboard shortcuts
  MXP
  7: More Flow Control
  ATCP
  Pattern Wizard
%replace [[%replace]] 
replace

Syntax: %replace(s,p,r)
Related:
%subregex

return s with all occurrences of p replaced with r

Examples:

#SHOW %replace(abcdabcd,bc,AAA)

displays:

aAAAdaAAAd

To remove all occurrences of a substring, replace it with a null string "":

#SHOW %replace(abcdabcd,bc,"")

displays:

adad

or, just leave out the third argument: %replace(abcdabcd,bc)

#VAR priceList {986|4237|4619|4627|3918|3627|9764|298}
#SHOW
%max(%replace(@priceList,"|",","))

displays:

9764
 
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net