geongeorge / i-hate-regex

The code for iHateregex.io 😈 - The Regex Cheat Sheet
https://iHateRegex.io
4.5k stars 320 forks source link

Embed code #55

Closed abhijeet9920 closed 4 years ago

abhijeet9920 commented 4 years ago

Hello, I'm working on this repository for adding some regex which I thought may be useful. I followed all the mentioned steps. However I'm not getting proper embed turing machine flow. For my regex it is showing invalid embed image. You can see it here. Is there anything I'm doing wrong? Thank you

geongeorge commented 4 years ago

Hey @abhijeet9920 , Thanks for your willingness in helping with adding expressions.

As far as I can see the link you provided shows a proper regular expression visualization. I was also able to embed the url as you see here

I assume that you are trying to embed the expression as an image which is not the way to go. You have to use an iframe to embed the page onto your website.

Just click the </> embed code next to the visualization to copy the code. And paste it as html as it contains the required