Welcome Guest, Not a member yet? Register   Sign In
regular expression
#1

[eluser]new_igniter[/eluser]
Hello,
Can someone help me to understand how to retrieve context with a regular expression? Say I wanted to grep twitter.com for all the occurances where someone typed "@myusername" and then get some context with that. How would you do that?
#2

[eluser]TheFuzzy0ne[/eluser]
[quote author="new_igniter" date="1209364068"]Hello,
Can someone help me to understand how to retrieve context with a regular expression? Say I wanted to grep twitter.com for all the occurances where someone typed "@myusername" and then get some context with that. How would you do that?[/quote]

I'm not sure what you mean. But try opening the site as a file with fopen, and then running something like ereg/eregi/preg_match (depending on what you need to do), may help.




Theme © iAndrew 2016 - Forum software by © MyBB