[darcs-users] Regular Expression libraries and linker errors
Trent W. Buck
twb at cybersource.com.au
Tue Oct 6 01:12:01 UTC 2009
Nathan Gray <kolibrie at graystudios.org> writes:
> On Sat, Oct 03, 2009 at 01:32:38AM -0700, Jason Dagit wrote:
>> Specifically, our current list looks like:
>> \.(foo|FOO)$
>>
>> I think we should transform that to:
>> \.[fF][oO][oO]$
>>
>> I think that better captures the case-insensitive intent that we had.
>
> If we want case-insensitive, can't we use a case-insensitive flag?
>
> (?i)\.foo$
>
> That's how it's written for Perl. I'm not sure of the syntax outside
> of Perl.
AIUI we currently use EREs, so are restricted to the functionality
mentioned in regex(7). That has no equivalent for (?i) other than
[fF][oO]...
More information about the darcs-users
mailing list