Quote:
Originally Posted by Cprade
Could help with regular expressions for this definition Google Docs Document (Word Processor Document):
Example:
Url
PHP Code:
https://docs.google.com/document/pub?id=1qcO_NN7kJDozn9X3nRUfcJ-rfXwpen0eGauPK89_4Zc
Insert
PHP Code:
<iframe src="https://docs.google.com/document/pub?id=1qcO_NN7kJDozn9X3nRUfcJ-rfXwpen0eGauPK89_4Zc&embedded=true"></iframe>
I was trying to RegexBuddy, but have not succeeded.
https://vborg.vbsupport.ru/showpost....5&postcount=87
Thanks
|
The regex would be:
Code:
https://docs\.google\.com/document/pub\?id=([\w-]+)
The Replacement:
Code:
<iframe src="https://docs.google.com/document/pub?id=$p1&embedded=true"></iframe>