Feb. 12, 2012
9:28 a.m.
http://rmod.lille.inria.fr/pbe2/ https://gforge.inria.fr/scm/viewvc.php/*checkout*/PharoByExampleTwo-Eng/Rege... I would be surprised that we call a regexp package something that cannot handle Stef On Feb 11, 2012, at 11:27 PM, recursive68@gmail.com wrote:
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