Search the web
Sign In
New User? Sign Up
click-it · Community for Linking Internet Companies
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Reg expression fun   Message List  
Reply | Forward Message #452 of 481 |
RE: CLICK! Reg expression fun

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]




Tue Nov 27, 2007 6:52 am

aguy@...
Send Email Send Email

Forward
Message #452 of 481 |
Expand Messages Author Sort by Date

Hello Clickiteers! Wonder if anyone can help me with a reg ex question - using php, I have: $string ='In||||||'; $pattern = '/\|+/'; $replacement = ','; echo...
jrmadsen67
Offline Send Email
Nov 21, 2007
8:25 am

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 ... ...
David M.
clickorganizer
Offline Send Email
Nov 21, 2007
9:52 am

Thanks, Dave, I'll check them out. Any one have any thoughts on a bonnenkai? ... www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline ...
J Madsen
jrmadsen67
Offline Send Email
Nov 26, 2007
12:24 am

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@... _____...
Alex Guy
aguy@...
Send Email
Nov 27, 2007
6:52 am

This is way cool, if you haven't seen it yet. http://www.youtube.com/watch?v=Jd3-eiid-Uw&eurl=http://www.cs.cmu.edu/~johnny/projects/wii/ Or try this tinyurl...
drg@...
luckydansei
Offline Send Email
Jan 31, 2008
1:15 am

Very cool...
Kyle Barrow
kylebarrow
Offline Send Email
Jan 31, 2008
4:54 am

Inspired by Johnny Lee : http://www.gametrailers.com/player/usermovies/169289.html Regards, Tony ... http://www.youtube.com/watch?v=Jd3-eiid-Uw&eurl=http:// ...
Tony Godar
tonygodar
Online Now Send Email
Feb 2, 2008
4:57 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help