I am trying to match only the word "handle" in this Tweet:
@testing50037393 @handle 123456 #checkin
I am using this regex expression - (?!testing50037393|checkin|\b\d)(\b\w+)
I am getting two results of the string "handle" as an array instead of just "handle" once. Please tell me how I can stucture this query to just get one instance of "handle".
I am getting this result with preg_match -
Array
(
[0] => handle
[1] => handle
)
And this with preg_match_all -
Array
(
[0] => Array
(
[0] => handle
)
[1] => Array
(
[0] => handle
)
)
Thanks,
Lela