Lasso Soft Inc. > Home

[Bytes->Replace]

Replaces all instances of a value within a bytes stream with a new value. Requires two parameters. The first parameter is the value to find, and the second parameter is the value to replace the first parameter with.

  • Syntax
  • Parameters
[Bytes Object->(Replace: Find Value, Replace Value)]
Required Parameters
Find Value The value to find in the bytes stream.
Replace Value The value to replace the find value with in the bytes stream.
Examples

To find and replace values in a byte stream:

Use the [Bytes->Replace] tag. The following example finds the string Blue and replaces with the string Green within the bytes stream.

[Var: 'Bytes' = (Bytes: 'Blue Red Yellow')]
[$Bytes->(Replace: 'Blue', 'Green')]
Tag Link [Bytes->Replace] Category Bytes
Type Member Data Source Any
Support Preferred Version 7.0
Output Type None Security None
Implementation Sets Lasso 7.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft