StringReplace

Parent Previous Next

Full Library / Math Operator / String Operation /  StringReplace
Block Name: StringReplace


On each firing, look for instances of the pattern specified by pattern in stringToEdit and replace them with the string given by replacement. If replaceAll is true, then replace all instances that match pattern. Otherwise, replace only the first instance that matches. If there is no match, then the output is the string provided by stringToEdit, unchanged. The pattern is given by a regular expression. For a reference on regular expression syntax see: http://java.sun.com/docs/books/tutorial/extra/regex/index.html


Field Detail

stringToEdit

public VisualSim.actor.parameters.PortParameter stringToEdit


output

public VisualSim.actor.TypedIOPort output


pattern

public VisualSim.actor.parameters.PortParameter pattern


replaceAll

public VisualSim.data.expr.Parameter replaceAll


replacement

public VisualSim.actor.parameters.PortParameter replacement



Created with the Personal Edition of HelpNDoc: iPhone web sites made easy