473,408 Members | 2,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Bug: Expression not properly evaluated in RegEx.IsMatch

Hi all

Was wondering of anyone can help me with why the following expression
works as expected in XMLSpy, but does not in VB.net:

[A-Za-z]{1,2}[1-9][0-9]?[A-Za-z]? [0-9][A-Za-z]{2}|GIR 0AA$

IN VB.net using Regex.IsMatch, all works OK appart from the fact that it
will allow more than 2 characters in the last section. In XMLSpy the
expression is evaluated correctly and shows an error when validating an
XML element. EG.:

Vb.net: AB1 1ABB does not generate an error
XMLSpy: AB1 1ABB generates 'value does not match facet pattern'.

Can this be confirmed as a bug in VB?
Thanks

Paul
Nov 20 '05 #1
0 997

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kate Bieren | last post by:
This should be easy but I am brand new to regular expressions so hopefully someone can help me. I want to do some simple field level validation in my app and I can do a simple test to see if the...
1
by: Colin Reid | last post by:
Hey MS, here's an apparent problem in the base class library. I pulled the email validation pattern "^((*)*@(()+(*)*\.)+{2,9})" from http://regexlib.com. If I validate the email address...
1
by: Kate Bieren | last post by:
This should be easy but I am brand new to regular expressions so hopefully someone can help me. I want to do some simple field level validation in my app and I can do a simple test to see if the...
2
by: joyce | last post by:
hi group, When I was trying to do a match on Regex.isMatch("$test",@"^\$") this seems to return "this expression causes side effects and will not be be evaluated", any ideas what I'm doing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.