Re: RegularExpression bug?
- To: mathgroup at smc.vnet.net
- Subject: [mg101743] Re: RegularExpression bug?
- From: Alexey <lehin.p at gmail.com>
- Date: Thu, 16 Jul 2009 08:15:43 -0400 (EDT)
- References: <h3kd67$fos$1@smc.vnet.net>
On Jul 15, 3:05 pm, Otto Murphy <obo... at gmail.com> 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.