Page 2 of 2
Re: Regex / custom filter questions
Posted: Mon Nov 07, 2016 2:49 pm
by nick.bolton
Is your OS and Web browser set to use UTF8? Eg Firefox>>View>>Text Encoding.
Can you send me a sample email to
nick.bolton@firetrust.com that we can test for here?
Re: Regex / custom filter questions
Posted: Mon Nov 07, 2016 9:22 pm
by eddiex666
you got a mail from "support" :-)
Re: Regex / custom filter questions
Posted: Tue Nov 08, 2016 6:14 am
by nick.bolton
Just to complete this thread.
* is not working in regular expressions in MWES, replace with [a-zA-Z0-9]+
eg
[a-zA-Z0-9]+\@[a-zA-Z0-9]+\.no.[a-zA-Z0-9]+
Or
[a-zA-Z0-9]+\@klinikkforalle+\.no.[a-zA-Z0-9]+
Re: Regex / custom filter questions
Posted: Wed Nov 09, 2016 2:59 am
by eddiex666
så how can we stop "Lån" ?
I tried "L.n" but this will stop "*n and L* so I have a big problem...
I need to have a asteriks for the norwegian chars "å"
how can that be done?
so word as . "l?n" ??? L + anychars + N ??
Eddie
Re: Regex / custom filter questions
Posted: Wed Nov 09, 2016 7:49 pm
by nick.bolton
Give this a try
L[\u00C0-\u017Fa-zA-Z0-9]+n
I have added the unicode range \u00C0-\u017F to the start of the square bracket group.
Edit: This might be simpler
L[À-ž]+n
Re: Regex / custom filter questions
Posted: Thu Nov 10, 2016 10:23 pm
by eddiex666
i will try this tips...
if i test this reg.ex on regex101.com it sayes invalid? is there any online tools where we can do a actually test where the reg.ex in MWES does match 100% ?
I also get the mail til "
monica.xxxxx@klinikkforalle.no, Du har 12,983,64 Kr. i påvente..."
even when I uses a reg.ex on subject "[a-zA-Z0-9]+\@klinikkforalle+\.no.[a-zA-Z0-9]+"
why?
Re: Regex / custom filter questions
Posted: Thu Nov 10, 2016 10:57 pm
by nick.bolton
L[À-ž]+n works on regex101.com, but the first one doesn't and I'm not sure why, it might be some parsing problem with the HTML in the browser. I don't know any others sorry, since we used the library called Deelex, we use their verification tool.
Try this for the subject line, it would work
[:alnum:]+@klinikkforalle