Smalltalk by example: Regular expressions
GNU Smalltalk 2.3 introduced the Smalltalk.Regex class definition. After this, you should be able to succesfully run Regex inspect ! within gst.
fromString is probably the best initialization to use.
|reg match| reg := 'he.lo' asString. reg asString "Returns the string 'he.lo'". match := 'hello' =~ reg. "Returns a MatchingRegexResults " match inspect . !
For matchin a Regex to a pattern, the special =~ binary operator has been created.
Back to GST by example