Please remove me from this group.
Alexander K. Guy
Sygtron Systems Ltd.
17 West 42nd Avenue
Vancouver, BC, Canada
V5Y 2S8
(604) 324-8623
aguy@...
_____
From: click-it@yahoogroups.com [mailto:click-it@yahoogroups.com] On Behalf
Of J Madsen
Sent: November 25, 2007 4:13 PM
To: click-it@yahoogroups.com
Subject: RE: CLICK! Reg expression fun
Thanks, Dave, I'll check them out.
Any one have any thoughts on a bonnenkai?
--- "David M." <davidm1@hotmail. <mailto:davidm1%40hotmail.com> com> wrote:
>
> Hi Jeff,
>
> Can't give you an answer, but will recommend you
> join and post it to webmasterworld.com PHP forum.
> I've gotten a lot of great info there.
>
> David
>
>
> > Hello Clickiteers!
> >
> > Wonder if anyone can help me with a reg ex
> question - using php, I have:
> >
> > $string ='In||||||';
> > $pattern = '/\|+/';
> > $replacement = ',';
> >
> > echo preg_replace($pattern, $replacement,
> $string);
> >
> > I want to be able to replace with nothing if the
> pattern is at the end
> > of my string.
> >
> > I.e., I get strings like:
> >
> > Exterior Facing Face Stain||Left Right Door
> Interior Lining Stain
> > Medium||F Bumper Below A Medium||Leather Seat
> Creased Small||Mirror
> > A||Side Face Repaired Marked||Interior Dirty
> Medium||||||
> >
> > with varying numbers of |'s, and want to replace
> the sets of pipes
> > with a single "," , except if it's at the end of
> the string, in which
> > case I want nothing.
> >
> > I know if you work with reg ex's a lot it's pretty
> simple, but guess
> > what I don't work with a lot? ;-)
> >
> > Thanks in advance,
> >
> > Jeff
> >
> >
> >
> > CLICK! Homepage and General Information
> > http://ikaiwa. <http://ikaiwa.com/click> com/click
> > Yahoo! Groups Links
> >
> > To visit your group on the web, go to:
> > http://groups. <http://groups.yahoo.com/group/click-it/>
yahoo.com/group/click-it/
> >
> > Your email settings:
> > Individual Email | Traditional
> >
> > To change settings online go to:
> > http://groups. <http://groups.yahoo.com/group/click-it/join>
yahoo.com/group/click-it/join
> > (Yahoo! ID required)
> >
> > To change settings via email:
> > mailto:click-it-digest@ <mailto:click-it-digest%40yahoogroups.com>
yahoogroups.com
> > mailto:click-it-fullfeatur
<mailto:click-it-fullfeatured%40yahoogroups.com> ed@yahoogroups.com
> >
> > To unsubscribe from this group, send an email to:
> > click-it-unsubscrib <mailto:click-it-unsubscribe%40yahoogroups.com>
e@yahoogroups.com
> >
> > Your use of Yahoo! Groups is subject to:
> > http://docs. <http://docs.yahoo.com/info/terms/> yahoo.com/info/terms/
> >
>
>
__________________________________________________________
> Your smile counts. The more smiles you share, the
> more we donate.� Join in.
>
www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline
__________________________________________________________
Be a better pen pal.
Text or chat with friends inside Yahoo! Mail. See how. http://overview.
<http://overview.mail.yahoo.com/> mail.yahoo.com/
[Non-text portions of this message have been removed]