Re: [exim] Is there a regex escape function?

Inizio della pagina
Delete this message
Reply to this message
Autore: exim-users
Data:  
To: exim-users
Oggetto: Re: [exim] Is there a regex escape function?
On 03/10/12 16:31, exim-users@??? wrote:

> "By perl style regular expressions" I was referring to PCRE. Yes,
> Perl does variable interpolation before running the regex, but then
> Exim does string expansion before running the regex as well.


Proof of the above:

mike@ung:~$ exim -be '${if
match{4.76}{^\\Q$version_number\\E\$}{true}{false}}'
true
mike@ung:~$ exim -be '${if
match{4X76}{^\\Q$version_number\\E\$}{true}{false}}'
false
mike@ung:~$

- -- 
Mike Cardwell  https://grepular.com/     http://cardwellit.com/
OpenPGP Key    35BC AF1D 3AA2 1F84 3DC3  B0CF 70A5 F512 0018 461F
XMPP OTR Key   8924 B06A 7917 AAF3 DBB1  BF1B 295C 3C78 3EF1 46B4