Vassili's Regex

Brian Murphy-Dye brian.murphydye at mac.com
Wed Oct 20 14:09:43 UTC 2004


If you need to match the spaces (and tabs/newlines), try

' 1'  matchesRegex: '[[:space:]]*[0-9]'

Brian.


On Oct 20, 2004, at 8:02 AM, Avi Bryant wrote:

>
> On Oct 20, 2004, at 3:54 PM, Torsten Bergmann wrote:
>
>> Does ^ not mean to skip spaces at the beginning?
>> Is this a bug in the Squeak port (haven't checked the
>> VW original).
>
> In any regular expression system I've used, ^ means *don't* skip 
> spaces at the beginning.  It's the marker for "start of string", like 
> $ is the marker for "end of string".
>
> Avi
>
>




More information about the Squeak-dev mailing list