Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #8289
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!feeder.erje.net!us.feeder.erje.net!news.linkpendium.com!news.linkpendium.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!yojimbo.hack!news.tokachu.com!.POSTED!not-for-mail |
|---|---|
| From | Salvatore <sal@yojimbo.hack.invalid> |
| Newsgroups | comp.lang.php, alt.comp.lang.php, alt.php |
| Subject | Re: change a string where have number after a word |
| Date | Tue, 5 Feb 2013 19:30:19 +0000 (UTC) |
| Organization | Yojimbo NNTP server |
| Lines | 28 |
| Message-ID | <kermkb$1rhr$1@yojimbo.hack> (permalink) |
| References | <a4mqpnjpnuxm.100ko7fi3dxss.dlg@40tude.net> <ker3qg$1jpu$1@yojimbo.hack> <lwbviz8xrn7a$.5zyaw9awc369$.dlg@40tude.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| X-Trace | yojimbo.hack "kq(Iga%czn" |
| X-Complaints-To | usenet(at)tokachu(dot)com |
| User-Agent | slrn/0.9.9p1 (FreeBSD) |
| X-Watermark | "Q(<g$Wn^Dp$%*({iJ^ZvvF0A7rnMPcwMuu$yvtnCCc)&M(g5W0*6Anh-Zi2g" |
| X-Reader-User | hidden; display="24EEr1QzLVIfRpxx65/wVSkg68k" |
| Xref | csiph.com comp.lang.php:8289 |
Cross-posted to 3 groups.
Show key headers only | View raw
On 2013-02-05, nawfer <novalidsforspam@alt.al> wrote: > for to complete the code > if I have > "arts color 4, tested well 4, passenger 2, arrived 2" > > or > "arts color bb 4, tested well 4, passenger 2, arrived 2" > > > extract this > "arts color bb 4, tested well 4" > > at moment extract so > bb 4, well 4, > > > and also how have this > "arts color bb, tested well" In that case, I would do the following: 1. Explode the string using "," as the delimiter. 2. Remove any array elements in the split string that do not match /\s4$/. 3. Implode the string. -- Blah blah bleh... GCS/CM d(-)@>-- s+:- !a C++$ UBL++++$ L+$ W+++$ w M++ Y++ b++
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
change a string where have number after a word nawfer <novalidsforspam@alt.al> - 2013-02-05 14:21 +0100
Re: change a string where have number after a word Salvatore <sal@yojimbo.hack.invalid> - 2013-02-05 14:09 +0000
Re: change a string where have number after a word nawfer <novalidsforspam@alt.al> - 2013-02-05 18:36 +0100
Re: change a string where have number after a word Salvatore <sal@yojimbo.hack.invalid> - 2013-02-05 19:30 +0000
Re: change a string where have number after a word "Jonathan N. Little" <lws4art@gmail.com> - 2013-02-05 14:40 -0500
Re: change a string where have number after a word nawfer <novalidsforspam@alt.al> - 2013-02-05 20:50 +0100
Re: change a string where have number after a word "Jonathan N. Little" <lws4art@gmail.com> - 2013-02-05 17:14 -0500
Re: change a string where have number after a word nawfer <novalidsforspam@alt.al> - 2013-02-06 11:47 +0100
Re: change a string where have number after a word "Jonathan N. Little" <lws4art@gmail.com> - 2013-02-06 09:58 -0500
csiph-web