I am creating a widget which takes input of Box folder embed code as a text input from user.
Embed code looks like :
<iframe src="https://app.box.com/embed_widget/q7tvbq5ajvfd/s/kl2tr6rpp77hl8ldmgbu?view=list&sort=name&direction=ASC&theme=blue" width="500" height="400" frameborder="0"></iframe>
I want to check the validity of this embed code programmatically. Is there any best practice available or if anyone applied this type of validity check, please let me know.
Thanks in advance.
Regular expressions are your friend here.
There are tins of examples on how to validate URLs or YouTube embed codes. I'd suggest that you start there
Sent from my Windows Phone
Retrieving data ...