Not Solved [Security] Custom Profile Field Expression - How to check for valid image url?
#1
Not Solved
As exactly as the title said... I want to know what is the correct expression for checking the valid image url - but specific website.

Thanks.
Reply
#2
Not Solved
Bump.
Reply
#3
Not Solved
You can use this as an example. It only validates Imgur URLs that use HTTPS.

^$|(https:\/\/i.imgur\.com\/[a-zA-Z0-9]{6,8})(\.jpg|\.gif|\.gifv|\.png)(?:[^a-zA-Z0-9]|$)
Reply
#4
Not Solved
(2016-05-30, 10:36 AM)Marisa Wrote: You can use this as an example. It only validates Imgur URLs that use HTTPS.

^$|(https:\/\/i.imgur\.com\/[a-zA-Z0-9]{6,8})(\.jpg|\.gif|\.gifv|\.png)(?:[^a-zA-Z0-9]|$)

This is actually perfect! I wanted Imgur and you whooped up the magic expression. Big Grin
Reply
#5
Not Solved
Then give rep and mark thread as solved Smile Thank you


Reply
#6
Not Solved
(2016-06-04, 03:24 AM)Firelad Wrote:
(2016-05-30, 10:36 AM)Marisa Wrote: You can use this as an example. It only validates Imgur URLs that use HTTPS.

^$|(https:\/\/i.imgur\.com\/[a-zA-Z0-9]{6,8})(\.jpg|\.gif|\.gifv|\.png)(?:[^a-zA-Z0-9]|$)

This is actually perfect! I wanted Imgur and you whooped up the magic expression. Big Grin

No problem, glad I could help. Angel
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)