How do I use regular expressions for title in embedding settings?

I figured this out, in case anyone else comes across this problem. I had over complicated it!

In the box that says ‘ Regular expression used to scrub the title of posts ’ you can just put the part of the title where you want the scrub to stop, with a on the end. So if the html title of the page is 'My post name - My Website Name' you can put '- My Website Name’ (without the quotation marks) in the box and the post that is created in discourse will not include that part of the title.

Hope this makes sense and might be helpful for someone else!