On Friday 19 November 2004 01:50, [EMAIL PROTECTED] wrote:
> > Then you can process each line separately but in groups 3 lines at a time
> > (assuming they're supposed to be groups of 3).
>
> but what happen's in the case a user drop down every line in a web
> form without a ELO character ?
Not q
Helo,
> I meant explode each *line* (at the EOL character(s)), so this:
> xxx.x.x.x | 0.0.0.0 255.255.255.255 UH 0 | | | 0 | | | | 0 ppp0
> is an element of the array. And this:
> 192.168.0.0 0.0.0.0 255.255.255.0 U | | 0 | | | 0 | | | | 0 eth1
> is another element, etc.
> > 0.0.0.0 |
On Thursday 18 November 2004 06:51, [EMAIL PROTECTED] wrote:
> Well this work's fine in the case the user input is correct :-)
>
> But it's not required to proof in the case I would assume that a
> user input is correct.
>
> To explode with the device as line break to allocate an array mem
> lead'
Hi,
> I have to admit I'm not following you. My suggestion that you use explode()
> was based on the premise that you have a bunch of lines:
>
> ...
> xxx.x.x.x 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
> 0.0.0.0 xxx.x
On Wednesday 17 November 2004 07:17, [EMAIL PROTECTED] wrote:
> But it has one weakness. In the case the device (ppp0) is
> missing somewhere in the output as the user didn't intend
> to integrate this required information, and by having insight
> it could be more than 10 lines with 10.000 rules o
Hi Jason Wong,
> > > The regular expression is already working but how can I reduce the
> > > string to have then only 2 lines ?
> > Convert the string into an array using explode().
Thank's a lot for this information. I tried this but
one thing is not suitable so far for me while
using explode.
On Friday 12 November 2004 00:50, [EMAIL PROTECTED] wrote:
> The regular expression is already working but how can I reduce the
> string to have then only 2 lines ?
Convert the string into an array using explode().
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Sy
7 matches
Mail list logo