Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #15898
| Path | csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.php |
| Subject | Re: find a space in a string, better fast solution? |
| Date | Sat, 14 Nov 2015 13:08:54 +0100 |
| Organization | PointedEars Software (PES) |
| Lines | 22 |
| Message-ID | <2535573.JF6dglbBag@PointedEars.de> (permalink) |
| References | <n2744a$2v9$1@speranza.aioe.org> |
| Reply-To | Thomas 'PointedEars' Lahn <php@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | solani.org 1447502940 29559 eJwFwYEBwCAIA7CXqtAi5yCO/09YQtNSh4tyDmcx7+L90PV8jkHHVJBsdkdVvnDH7gKyOvMHFRoQxg== (14 Nov 2015 12:09:00 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Sat, 14 Nov 2015 12:09:00 +0000 (UTC) |
| User-Agent | KNode/4.14.2 |
| X-User-ID | eJwFwYEBwCAIA7CXQGiRc1TW/09YgqDzVRJMCKpcbsk2BlvxFUq+lxz4bELI1Ezvi+oLn20Vx7Pe6sM3/gMYxBRY |
| Cancel-Lock | sha1:pEn6G1u2ADmyvDERXV+8UBrGetk= |
| X-NNTP-Posting-Host | eJwNx0EBACAIA8BKIGxiHFHoH0F/dzAqz3SCjkZT6pbOMIgNZvRH/K4bijriklsP10Bk4e4HAugQdQ== |
| Xref | csiph.com comp.lang.php:15898 |
Show key headers only | View raw
albert wrote: > which is the most fast solution for know if after first number there is > a space? Pattern matching: <http://php.net/preg_match> If the function returns 0 for the proper pattern, there either is no number or there is no number followed by space. If it returns 1 then, there is a number followed by space. For the first number, all preceding characters (in the line) must be non- digits. That can either be addressed with a negating *character class* (see the corresponding section in the PHP manual) or with negative *lookbehind* (see the section “Assertions”). -- PointedEars Zend Certified PHP Engineer Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
find a space in a string, better fast solution? albert <alstopspam@stopaspam.com> - 2015-11-14 11:58 +0100 Re: find a space in a string, better fast solution? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-11-14 13:08 +0100 Re: find a space in a string, better fast solution? Jerry Stuckle <jstucklex@attglobal.net> - 2015-11-14 09:18 -0500
csiph-web