Parsing OpenGraph data in HTML

I slightly updated the regex pattern from here https://stackoverflow.com/a/30778027/1240982

I am now using

//Test regex here: https://regex101.com/r/yEcR9E/1
Dim patterns() as String
patterns.Add "<meta\s[^>]*property=[\""'](og:title)[\""']\s[^>]*content=[\""']([^'^\""]+?)[\""'][^>]*>"
patterns.Add "<meta\s[^>]*property=[\""'](og:image)[\""']\s[^>]*content=[\""']([^'^\""]+?)[\""'][^>]*>"
patterns.Add "<meta\s[^>]*property=[\""'](og:image:url)[\""']\s[^>]*content=[\""']([^'^\""]+?)[\""'][^>]*>"


Timing results for the three links above are now.
1ms
2ms
3ms
:tada:

And the result looks like this in my Xojo Web App (running in Xojo Cloud, not locally)
og_tags_animation

3 Likes