regular expression question



Is it possible for a regular expression to macth only an empty string? What
I want is exactly {0}, but that causes the parser to throw an exception -

parsing "{0}" - Quantifier {x,y} following nothing.

Duh, I want nothing. Maybe I need an expression that evaluates to "not
anything?" I can't find that either.

Paul


.



Relevant Pages

  • regural expression with not condition.
    ... i'm trying validate the format which doesn't consist of an empty string ... in the single or double quotes. ... need except this like the string may contain "vamsi" or 'vamsi' or ... or can we put a not condition for the regular expression ...
    (comp.lang.ruby)
  • Re: Problem with the $ sign by Match String
    ... In a regular expression, ... So, when you tried to match the regular expression $, you were trying to match to an empty string at the end, which is why your function failed.  When you enter \$, the regular expression treats the $ as a character. ...
    (comp.lang.labview)
  • regular expression
    ... How do i incorporate empty string requirement into the regular expression? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Conditionally Adding SQL
    ... ever use the C increment macro stuff?) ... regular expression, numeric sequencing. ... If you write your own parser. ...
    (microsoft.public.sqlserver.programming)
  • Re: Writing parser right way in c#
    ... If you anticipate more patterns to be added after your parser is ... Best way is to define your tokens as regular expressions and use these ... a lexical analyzer, which converts the input stream ...
    (microsoft.public.dotnet.general)