Quote:
Originally Posted by BirdOPrey5
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>
|
Hors Thanks, works perfectly.
I hope you can help me with the other DEFINITIONS of google docs.
Google Docs Presentation:
PHP Code:
https://docs.google.com/present/view?id=dctw66qq_0w6fhnfc4
PHP Code:
<iframe src="https://docs.google.com/present/embed?id=dctw66qq_0w6fhnfc4&size=m" frameborder="0" width="555" height="451"></iframe>
Google Docs Spreadsheet:
PHP Code:
https://spreadsheets.google.com/spreadsheet/pub?hl=es&hl=es&key=0Aggh3OwKK2ATdDFTaEwyeElLeEFpYWl0eUZqNEIwenc
PHP Code:
<iframe src='https://spreadsheets.google.com/spreadsheet/pub?hl=es&hl=es&key=0Aggh3OwKK2ATdDFTaEwyeElLeEFpYWl0eUZqNEIwenc&output=html&widget=true'></iframe>
Google Docs Form:
PHP Code:
https://spreadsheets.google.com/spreadsheet/viewform?formkey=dEtXSktfcHBKWGFOYUJ3TEhBT3NRbXc6MQ
PHP Code:
<iframe src="https://spreadsheets.google.com/embeddedform?formkey=dEtXSktfcHBKWGFOYUJ3TEhBT3NRbXc6MQ"></iframe>
Google Docs Drawings:
PHP Code:
https://docs.google.com/drawings/pub?id=18Ji-lfqSJ8tW05sY6fTyOs6g5MYjkl2F5r_U9dA_lWo&w=480&h=360
PHP Code:
<img src="https://docs.google.com/drawings/pub?id=18Ji-lfqSJ8tW05sY6fTyOs6g5MYjkl2F5r_U9dA_lWo&w=480&h=360">
And if you give me some pointers to make regular expressions, would be excellent, i was trying to do with RegexBuddy.
Herein the definition of Google Docs Document, if anyone wants it.