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

@BoxBIF @BoxBIF(alias="reFindNoCase") @BoxMember(type=STRING,name="reFind",objectArgument="string") @BoxMember(type=STRING,name="reFindNoCase",objectArgument="string") public class ReFind extends BIF
  • Constructor Details

    • ReFind

      public ReFind()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      Uses a regular expression (RE) to search a string for a pattern, starting from a specified position. The search is case-sensitive. It will return numeric if returnsubexpressions is false and a struct of arrays named "len", "match" and "pos" when returnsubexpressions is true.
      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