MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: RegularExpression bug?

  • To: mathgroup at
  • Subject: [mg101743] Re: RegularExpression bug?
  • From: Alexey <lehin.p at>
  • Date: Thu, 16 Jul 2009 08:15:43 -0400 (EDT)
  • References: <h3kd67$fos$>

On Jul 15, 3:05 pm, Otto Murphy <obo... at> wrote:
> StringCases["asdf", RegularExpression["^[^r]+?$"]] does not return any
> matches. However, this regular expression matches the entire string
> "asdf" in another regex environment.
> Is this a bug?

Yes, I think this is a bug. Interestingly, the following works fine:

In[1]:= StringCases["asdf", RegularExpression["^[^rr]+?$"]]

Out[1]= {"asdf"}

I have no idea why this happens.

  • Prev by Date: Re: CityData seems to be dead.
  • Next by Date: another Epilog LogPlot problem
  • Previous by thread: RegularExpression bug?
  • Next by thread: Re: RegularExpression bug?