Regex / custom filter questions

Anything else, but be polite...
User avatar
nick.bolton
The Big Cheese
Posts: 2468
Joined: Thu Aug 28, 2008 4:02 pm

Re: Regex / custom filter questions

Mon Nov 07, 2016 2:49 pm

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?
eddiex666
Travelling Tuatara
Posts: 42
Joined: Fri Aug 05, 2016 12:30 am

Re: Regex / custom filter questions

Mon Nov 07, 2016 9:22 pm

you got a mail from "support" :-)
User avatar
nick.bolton
The Big Cheese
Posts: 2468
Joined: Thu Aug 28, 2008 4:02 pm

Re: Regex / custom filter questions

Tue Nov 08, 2016 6:14 am

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]+
eddiex666
Travelling Tuatara
Posts: 42
Joined: Fri Aug 05, 2016 12:30 am

Re: Regex / custom filter questions

Wed Nov 09, 2016 2:59 am

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
User avatar
nick.bolton
The Big Cheese
Posts: 2468
Joined: Thu Aug 28, 2008 4:02 pm

Re: Regex / custom filter questions

Wed Nov 09, 2016 7:49 pm

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
eddiex666
Travelling Tuatara
Posts: 42
Joined: Fri Aug 05, 2016 12:30 am

Re: Regex / custom filter questions

Thu Nov 10, 2016 10:23 pm

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?
User avatar
nick.bolton
The Big Cheese
Posts: 2468
Joined: Thu Aug 28, 2008 4:02 pm

Re: Regex / custom filter questions

Thu Nov 10, 2016 10:57 pm

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

Return to “Miscellaneous”