regex: Nested quantifier ?. error! help

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Mad Scientist Jr (usenet_daughter_at_yahoo.com)
Date: 12/29/04


Date: 29 Dec 2004 08:30:20 -0800

I am trying to use regex to find a string where ? could be between 0
and 10 characters, for instance the strings:

Error. Username 1092006871 does not exist. Record not processed.
Error. Username abc123 does not exist. Record not processed.
Error. Username does not exist. Record not processed.

would all yield results

However, the regex I am using:

Username ?????????? does not exist.

Gives a "Nested quantifier ?." error.

I have tried using *:

Username * does not exist.

but it doesn't find anything.

The only thing that seems to work is .:

Username .......... does not exist.

But that only matches on cases where the username is exactly 10
characters. I would like to match on cases where the username is
between 0 and 10.

Any help (and especially examples) appreciated.



Relevant Pages

  • Re: WSE 3.0, usernameOverTransportSecurity, custom Token Manager w/ securityTokenManager,
    ... Microsoft.Web.Services3.Security.Security security) ... throw new Exception("The username token is not present in the ... I've added the web service call directly to my Data binding method ... protected override string AuthenticateToken(UsernameToken ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: WSE 3.0, usernameOverTransportSecurity, custom Token Manager w/ securityTokenManager,
    ... Microsoft.Web.Services3.Security.Security security) ... This assertion is only valid to see whether you are receiving the username ... I've added the web service call directly to my Data binding method ... protected override string AuthenticateToken(UsernameToken token) ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: WSE 3.0, usernameOverTransportSecurity, custom Token Manager w/ securityTokenManager,
    ... Microsoft.Web.Services3.Security.Security security) ... This assertion is only valid to see whether you are receiving the username ... I've added the web service call directly to my Data binding method ... protected override string AuthenticateToken(UsernameToken token) ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Irritating INSERT INTO Error
    ... Password is a reserved word in Access 2000 SQL. ... LastName, EMail, UserName,, Address, City, State, Country) ... Public Sub AddRecord(ByVal FirstName1 As String, ... Dim oledbCmd As OledbCommand ...
    (microsoft.public.dotnet.framework.aspnet)
  • VB.net impersonation / credentials issues
    ... the fact I know that the passwords and username are correct. ... Dim x As New ListViewItem ... Private _username, _password, _domainname As String ... Public Sub New(ByVal username As String, ...
    (microsoft.public.dotnet.general)