Extracting Strings
This is probably much simpler than I'm making it, and seems like
something that is done all the time, but I can't find a combination of
regular expression and php function that does it.
I want to extract the data in the following string:
"Person Name" <email@xxxxxxx>
that is between the "" and the <> characters.
In this case I want to extract:
Person Name and email@xxxxxxx
so I can assign the results to a variable or array. I want to extract
each string separately.
If someone can help me construct the script/regular expression to do
this, I would appreciate it.
Thanks,
--Kenoli
.
Relevant Pages
- Re: Extracting Strings
... regular expression and php function that does it. ... I want to extract the data in the following string: ... The characters in the square brackets are the characters to match ... (alt.php) - Re: Extracting Strings
... regular expression and php function that does it. ... I want to extract the data in the following string: ... The characters in the square brackets are the characters to match ... (alt.php) - Re: inefficient regex - please help!
... Are you sure you have the right regular expression here? ... you're trying to *extract* the newlines ... Connection" occurance - but you state you want to "count" the occurances. ... (comp.lang.perl.misc) - Re: Extracting Strings
... regular expression and php function that does it. ... I want to extract the data in the following string: ... (alt.php) - Re: Extracting a numbers from a text string
... thorough understanding of the application's potential. ... The Regular Expression is the section within the double quote marks. ... Look for a space (but don't extract it) ... a string of digits ... (microsoft.public.excel.worksheet.functions) |
|