docs.intersystems.com
InterSystems IRIS Data Platform 2019.2  /  InterSystems Programming Tools Index

InterSystems Programming Tools Index
Regular Expressions
Previous section           Next section
InterSystems: The power behind what matters   
Search:  


Perform pattern matching using regular expressions.
Background Information
Regular expressions are a short and flexible way to match strings, so that you can locate particular characters, words, or patterns of characters.
Available Tools
$LOCATE ObjectScript function
Returns the position of the first match of a regular expression in a string. See “$MATCH” in the reference “ObjectScript Functions” in ObjectScript Reference and see “Regular Expressions” in Using ObjectScript.
$MATCH ObjectScript function
Returns a boolean value depending on whether a string matches a regular expression. See “$LOCATE” in the reference “ObjectScript Functions” in ObjectScript Reference and see “Regular Expressions” in Using ObjectScript.
%Regex.Matcher class
Creates an object that does pattern matching using regular expressions. The regular expressions come from the International Components for Unicode (ICU). The ICU maintains web pages at http://www.icu-project.org.
For details, see “Regular Expressions” in Using ObjectScript.
Availability: All namespaces.
Notes
The ObjectScript pattern matching operator is also quite flexible, but does not provide the full range of syntax given by regular expressions. See “Pattern Matching” in Using Caché ObjectScript.


Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-08-16 06:44:52