swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Related Concepts  
pattern  

unanchored

 
 

Syntax

matches unanchored pattern

or 

match unanchored pattern


Purpose

You can use the unanchored pattern modifier to indicate that a pattern is to be matched anywhere in the scanned source, rather than only at the beginning of the scanned source:

  do scan "Mary had a little lamb"
     match unanchored "little"
  done

unanchored can only be use in a match alternative or matches test. It is not supported in find, take, or drop patterns.

The use of unanchored is deprecated in favor of the pattern any**, which works in all pattern expressions:

  process 
     submit "Mary had a little lamb"
  
  find any** "little"

      Related Concepts
   Pattern matching
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:33:48 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.