Specialized Search requirement - need help figuring out
Posted: Fri Jan 22, 2010 7:24 pm
OK - Here is what I am trying to accomplish.
I have an html file on my server.
I have loaded the contents of that file into a variable called $contents.
I now want to look at that string and find each occurrence of a particular group of characters and extract that group of characters.
Example :
<a onclick='modal_maptile(539396,"null",745,745,"null","null",null,"null","null",null,24,"bcity","null",6,null,null,null);return false;
- What I want to do is extract everything that is between this >> maptile( and this >> );return false
The contents between will be different most of the time. but there will be about 100 of these onclick instances in the file/string.
Of course I want to dump each field (separated by the comma) into an array.
After I do this step, then there is more I will need to do, but this is where I am stuck right now.
Thanks!
I have an html file on my server.
I have loaded the contents of that file into a variable called $contents.
I now want to look at that string and find each occurrence of a particular group of characters and extract that group of characters.
Example :
<a onclick='modal_maptile(539396,"null",745,745,"null","null",null,"null","null",null,24,"bcity","null",6,null,null,null);return false;
- What I want to do is extract everything that is between this >> maptile( and this >> );return false
The contents between will be different most of the time. but there will be about 100 of these onclick instances in the file/string.
Of course I want to dump each field (separated by the comma) into an array.
After I do this step, then there is more I will need to do, but this is where I am stuck right now.
Thanks!