Re: get some part of text
| From: | QT | Date: | Sat, 15 Nov 2003 06:24:25 +0000 |
| Subject: | Re: get some part of text | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169677@lists.php.net to get a copy of this message | ||
I can not understand very well,
shoul I write something like that
$NewError = /errorCode=\"([~\"]+)\"/;
"Rob Adams" <rob_adams@hotmail.com> wrote in message
news:20031114202440.55766.qmail@pb1.pair.com...
> Try a regular expression.
>
> /errorCode=\"([~\"]+)\"/
>
> I'm not good at that kind of syntax, but something very similar to that
> should work.
>
> -- Rob
>
>
>
> "Qt" <web_tur@yahoo.com> wrote in message
> news:20031114200917.29551.qmail@pb1.pair.com...
> > dear Sirs,
> >
> > I have this string;
> >
> > job_resp errorCode="4194337" description="Originator you"
> >
> > I need to take only errorCode value from this string. I am thinking and
> > thinking and can not find how to to. I can split with "=" but allways
> > erroCode place is changing in the string.
> >
> > Any idea
> >
> > Best Regards