TPUHELP.HLB  —  UNANCHOR
  UNANCHOR

     Specifies that a search may match a pattern at any position after the
     current position.

     UNANCHOR is a keyword, not a built-in.  It has no parameters.

     If a pattern contains two or more pattern elements joined by the plus
     sign (+) sign or the ampersand (&), by default a search for that
     pattern is an anchored search.  That is, the search successfully
     matches the pattern only if all elements of the pattern occur one right
     after the other, with no intervening characters that are not part of
     the pattern.  To override the default, use UNANCHOR.  You can use
     UNANCHOR anywhere in a pattern definition.

  Example

     pat1 := "a" + UNANCHOR + "123" + ANY ("XYZ");

     This statement creates a pattern that matches any text beginning with
     the letter "a" and ending with "123" followed by X, Y, or Z.  Any
     amount of text, including line breaks, may appear between the "a" and
     the "123."

  Related Topics

     ANCHOR   SEARCH   SEARCH_QUIETLY
Close Help