Ok I played with this a bit last night and got it dialed. The modified parm line in the embed code looks like this:

"s=ZT0xJmk9OD\\2mYT05NzcwNTk0X1FrckZaJnU9TXVuaWFj"

Where user input is substituted for \\2 which I gathered from looking at the youtube example.

The SmugMug ID for the video is always 21 alphanumeric chars (no spaces) so the regex expression for the user input is below:

(\b)([a-zA-Z0-9]{21})(\b)

This wasn't a difficult task but time consuming if you know nothing about little regex details. Figuring out the regex line took the most amount of time. I gathered this is a reincarnation of the old Unix utility GREP. It's now working as expected and anyone else wishing to embed SmugMug video can do so in a couple of minutes. Anyway thanks for the help, advise and guidance on this.

Did I miss any details?


Best - Scott