M
Manuel Manu00
Hello
I would like to parse or regexp the following string :
<script type="text/javascript">
google_ad_client = "pub-9423056098431875";
/* 300x250, created 6/10/09 */
google_ad_slot = "1755518182";
google_ad_width = 300;
google_ad_height = 250;
</script>
in order to keep only this : pub-9423056098431875 (and store it in a
base)
I tried with regexp : ((google_ad_client = \"pub-)(.*?)(\")
but it's not working. and i don't know which function to use (split ?
splice ?) and how to proceed... I'm n00b in Ruby, sorry.
Thank you very much for your help
I would like to parse or regexp the following string :
<script type="text/javascript">
google_ad_client = "pub-9423056098431875";
/* 300x250, created 6/10/09 */
google_ad_slot = "1755518182";
google_ad_width = 300;
google_ad_height = 250;
</script>
in order to keep only this : pub-9423056098431875 (and store it in a
base)
I tried with regexp : ((google_ad_client = \"pub-)(.*?)(\")
but it's not working. and i don't know which function to use (split ?
splice ?) and how to proceed... I'm n00b in Ruby, sorry.
Thank you very much for your help