Product SiteDocumentation Site

5.4.16.2. init


                     +-,-"MAXIMAL"--+
>>-init(-+---------+-+--------------+-)--------------------><
         +-Pattern-+ +-,-"MINIMAL"--+

Instantiates a RegularExpression object. Use the optional parameter Pattern to define a pattern that is used to match strings. See the introductory text below for a description of the syntax. If the strings match, you can decide whether you want to apply "greedy" matching (a maximum-length match) or "non-greedy" matching (a minimum-length match).

Example 5.195. Class REGULAREXPRESSION - new method


myRE1 = .RegularExpression~new
myRE2 = .RegularExpression~new("Hello?*")