Welcome Guest, Not a member yet? Register   Sign In
preg match @ sign
#1

[eluser]new_igniter[/eluser]
I am new to preg match but hoping someone could help me write a reg ex that would do something like the following:
I want to parse twitter feeds and pull out the content when someone posts "at" someone. This always begins with the @ sign then the name, and then the content.

How do I write something like "look for the at sign, then copy everything until there is a space after the name.

I am using get file contents, so the actual html looks like this
@<a href="/ev">ev</a>


Messages In This Thread
preg match @ sign - by El Forum - 05-05-2008, 04:31 PM
preg match @ sign - by El Forum - 05-05-2008, 04:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB