Class ReReplace

java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.string.ReReplace

@BoxBIF @BoxBIF(alias="reReplaceNoCase") @BoxMember(type=STRING,name="ReReplace") @BoxMember(type=STRING,name="ReReplaceNoCase") public class ReReplace extends BIF
  • Constructor Details

    • ReReplace

      public ReReplace()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      Uses a regular expression (regex) to search a string for a string pattern and replace it with another. The search is case-sensitive.
      Specified by:
      _invoke in class BIF
      Parameters:
      context - The context in which the BIF is being invoked.
      arguments - Argument scope for the BIF.
      Returns:
      The result of the invocation