Re: RegEx ignore case
Re: RegEx ignore case
- Subject: Re: RegEx ignore case
- From: Bill Briggs <email@hidden>
- Date: Sat, 10 Mar 2001 22:38:33 -0400
At 7:28 PM -0600 10/03/01, Christopher C. Stone wrote:
> But PLEASE: could anyone explain to me why the last "case" thing gets
translated to 'with ignoreCase' when the script is saved or checked, whereas
it *refuses* to accept 'with ignoreCase' on subequent saves?? Very
> irritating!... What is the workaround?
This. Not sure if this came from Arthur or Ed, but if you write it like this
set theString to "wXyz"
REReplace theString with "y" pattern "x" ignoreCase (true)
the compilation will not rewrite it to "with ignoreCase". It will stay as
ignoreCase (true)
and will always recompile. It's painless and it works.
- web