Forum Discussion

Amine_373499's avatar
Amine_373499
Icon for Nimbostratus rankNimbostratus
Dec 10, 2018

ASM - Allow Emails form in URL using REGEX

Hey to everyone

i'm having a hard time to find a way to allow URL that contain a E-mail forme , ASM stop it because it 's taken as an Illegal File type ( .ma , .fr , .com or even .ac.fr ) , so what is the best way to solve this issue , is it possible to use regex to solve the probléme ? URL from

Http URL

/user/Emailuser@somthing.com/information
/user/Emailuser@somthing.com

P.S : I'm a verry beginner in ASM . And thank you for helping me !

  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    Here's the regex pattern you could use:

    ^\/user\/([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})(\/.*)?$

    .

    Mind you, the use of regex is resource intensive.