[PHP] Re: Splitting a string ...

2010-03-15 Thread Al
On 3/14/2010 9:54 PM, Ashley M. Kirchner wrote: I'm not a regexp person (wish I was though), and I'm hoping someone can give me a hand here. Consider the following strings: - domain\usern...@example.org - domain\username - the same as above but with / instead of

RE: [PHP] Re: splitting a string

2010-01-05 Thread Bob McConnell
From: Shawn McKenzie [mailto:nos...@mckenzies.net] > Andrew Ballard wrote: >> On Tue, Jan 5, 2010 at 10:20 AM, Ashley Sheridan >> wrote: >>> On Tue, 2010-01-05 at 16:18 +0100, Daniel Egeberg wrote: >>> On Tue, Jan 5, 2010 at 16:09, Shawn McKenzie wrote: > Of course this doesn't work for

Re: [PHP] Re: splitting a string

2010-01-05 Thread Shawn McKenzie
Andrew Ballard wrote: > On Tue, Jan 5, 2010 at 10:20 AM, Ashley Sheridan > wrote: >> On Tue, 2010-01-05 at 16:18 +0100, Daniel Egeberg wrote: >> >>> On Tue, Jan 5, 2010 at 16:09, Shawn McKenzie wrote: Of course this doesn't work for something like 'My.Word.Document.docx' or 'archive_v2.

Re: [PHP] Re: splitting a string

2010-01-05 Thread Andrew Ballard
On Tue, Jan 5, 2010 at 10:20 AM, Ashley Sheridan wrote: > On Tue, 2010-01-05 at 16:18 +0100, Daniel Egeberg wrote: > >> On Tue, Jan 5, 2010 at 16:09, Shawn McKenzie wrote: >> > Of course this doesn't work for something like 'My.Word.Document.docx' >> > or 'archive_v2.0.1.tar.gz', but I don't know

Re: [PHP] Re: splitting a string

2010-01-05 Thread Ashley Sheridan
On Tue, 2010-01-05 at 16:18 +0100, Daniel Egeberg wrote: > On Tue, Jan 5, 2010 at 16:09, Shawn McKenzie wrote: > > Of course this doesn't work for something like 'My.Word.Document.docx' > > or 'archive_v2.0.1.tar.gz', but I don't know what will with extensions > > being variable length and possib

Re: [PHP] Re: splitting a string

2010-01-05 Thread Daniel Egeberg
On Tue, Jan 5, 2010 at 16:09, Shawn McKenzie wrote: > Of course this doesn't work for something like 'My.Word.Document.docx' > or 'archive_v2.0.1.tar.gz', but I don't know what will with extensions > being variable length and possibly composed of multiple periods. I suppose a solution to that cou

Re: [PHP] Re: splitting a string

2010-01-05 Thread Richard Quadling
ming on hence I don't > know many functions just yet. > > -Original Message- > From: Shawn McKenzie [mailto:nos...@mckenzies.net] > Sent: 05 January 2010 15:09 > To: a...@ashleysheridan.co.uk > Cc: Ingleby, Les; php-general@lists.php.net > Subject: Re: [PHP] Re:

RE: [PHP] Re: splitting a string

2010-01-05 Thread Ingleby, Les
t yet. -Original Message- From: Shawn McKenzie [mailto:nos...@mckenzies.net] Sent: 05 January 2010 15:09 To: a...@ashleysheridan.co.uk Cc: Ingleby, Les; php-general@lists.php.net Subject: Re: [PHP] Re: splitting a string Ashley Sheridan wrote: > On Tue, 2010-01-05 at 08:45 -0600, Shawn

Re: [PHP] Re: splitting a string

2010-01-05 Thread Shawn McKenzie
Ashley Sheridan wrote: > On Tue, 2010-01-05 at 08:45 -0600, Shawn McKenzie wrote: > >> Ingleby, Les wrote: >>> Hi all, first time I have posted here so please be nice. >>> >>> I am using PEAR HTTP_Upload to handle multiple file uploads. What I need to >>> do is to take the file name which is outp

Re: [PHP] Re: splitting a string

2010-01-05 Thread Richard Quadling
2010/1/5 Ashley Sheridan : > On Tue, 2010-01-05 at 08:45 -0600, Shawn McKenzie wrote: > >> Ingleby, Les wrote: >> > Hi all, first time I have posted here so please be nice. >> > >> > I am using PEAR HTTP_Upload to handle multiple file uploads. What I need >> > to do is to take the file name which

Re: [PHP] Re: splitting a string

2010-01-05 Thread Ashley Sheridan
On Tue, 2010-01-05 at 08:45 -0600, Shawn McKenzie wrote: > Ingleby, Les wrote: > > Hi all, first time I have posted here so please be nice. > > > > I am using PEAR HTTP_Upload to handle multiple file uploads. What I need to > > do is to take the file name which is output using the getProp() func

[PHP] Re: splitting a string

2010-01-05 Thread Shawn McKenzie
Ingleby, Les wrote: > Hi all, first time I have posted here so please be nice. > > I am using PEAR HTTP_Upload to handle multiple file uploads. What I need to > do is to take the file name which is output using the getProp() function and > then remove the file extension from the end of the file

[PHP] Re: splitting a string in half

2001-07-31 Thread Richard Lynch
> I wish to split my databased string in half to be shown on 2 seperate > columns, but also preserve whole words. Is there a function that does this > already? Maybe a quick fix? Hopefully something that doesn't include html > tags as part of the string to split. If it's not that specific then tha