|
Posted by Olaf Schinkel on June 24, 2008, 10:01 am
Please log in for more thread options
Tim Streater schrieb:
> I'm obviously missing something here. I have a line like this (in
> $line), and I want all the text within the double quotes::
>
> somestr="string I want"
>
> with some whitespace at the beginning. So I try this:
>
> $res = sscanf ($line, ' %s"%s"');
> $wanted = $res[1];
>
> This appears to put the whole string in $res[0] (possibly minus the
> whitespace). What am I doing wrong?
>
> TIA - tim
You are looking for:
preg_match_all();
|