I've used the package to good effect, but you are beyond me - hopefully someone else can offer some real help. You might something in the Reg ex chapter on
Look under "Pharo by Example 2" on the right side of the page.
HTH (some).
From: pharo-project-bounces@lists.gforge.inria.fr [pharo-project-bounces@lists.gforge.inria.fr] on behalf of recursive68@gmail.com [recursive68@gmail.com]
Sent: Saturday, February 11, 2012 5:27 PM
To: pharo-project@lists.gforge.inria.fr
Subject: [Pharo-project] Regular expression
Hi,
Is it possible to use the VB-Regexp package to construct a single regular expression that ensures a string is alphanumeric and contains both at least one number and alphabetic character.
Looking at the regexp package and documentation it doesn't appear so. In javascript or perl you use something like this with lookahead assertions:
^(?=.*[a-zA-Z])(?=.*[0-9]).*$
I have something working using multiple regexp's but wondered if a more typical regexp was possible using the package ?
Thanks