Regex - Validation Help :) | XM Community
Skip to main content

Hello

Hope everyone is well. 👊

I need help with code for a regex validation.

I have a text entry field, that can only pass if the end of a URL is.

/########

The above is forward slash then 8 digits, like this example.

Thanks everyone :)

@parkie_0007 

Try this
 

/^https:\/\/\^\/]+\/\d{8}$/

 


Thanks @Deepak 

Although I am yet to test this, would it make any difference to the code now that you can see the full URL, or is this code always just for / 8 digits at the end?

Thanks!


I just tested that, but unfortunately it did not work.

I could not get the above link to pass.

Thanks @Deepak 


@parkie_0007 

Try this
/^https:\/\/.+\/\d{8}$/


Legend, thanks! 


Leave a Reply