I'm working on DTD's

"Ashley Sheridan" <a...@ashleysheridan.co.uk> wrote in message
news:1252071932.24700.153.ca...@localhost...
> On Fri, 2009-09-04 at 15:37 +0200, Ralph Deffke wrote:
> > the problem is some have got \t\n
> > some are just \n\n....\n
> >
> > using PHP_EOL is a must
> >
> > I thing must be something with the /../sm attributes to the regex, spend
> > like half an hour, but didn't get it, I'm running against a dead line,
> > doesn't seem to be that easy if regex is not the everydays need u have
> >
> >
> > "Ashley Sheridan" <a...@ashleysheridan.co.uk> wrote in message
> > news:1252071327.24700.152.ca...@localhost...
> > > On Fri, 2009-09-04 at 15:28 +0200, Ralph Deffke wrote:
> > > > ok
> > > >  preg_replace( "/^\s*$/m", "", $somestring)
> > > > does not take empty lines out
> > > >
> > > > "Ashley Sheridan" <a...@ashleysheridan.co.uk> wrote in message
> > > > news:1252069539.24700.150.ca...@localhost...
> > > > > On Fri, 2009-09-04 at 14:58 +0200, Ralph Deffke wrote:
> > > > > > Hi all, I'm a bit under stress, maybe somebody knows the regex
on a
> > > > snap.
> > > > > > using PHP_EOL would be great.
> > > > > >
> > > > > > thanks
> > > > > > ralph_def...@yahoo.de
> > > > > >
> > > > > >
> > > > > >
> > > > > The regex that would match a line containing only whitespace would
> > look
> > > > > like this:
> > > > >
> > > > > ^\s*$
> > > > >
> > > > > Thanks,
> > > > > Ash
> > > > > http://www.ashleysheridan.co.uk
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > Are the lines actually whitespace, or are they actually <br/> tags
that
> > > are inserting lines to format the page for HTML display?
> > >
> > > Thanks,
> > > Ash
> > > http://www.ashleysheridan.co.uk
> > >
> > >
> > >
> >
> >
> >
> If it is just made up of \t and \n then \s in the regex should match it,
> as it's meant to match just whitespace characters. Where are you getting
> the content from anyway?
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to