swirl
Guide to OmniMark 7   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 ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:56 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.