php-general Digest 28 Jul 2012 01:45:25 -0000 Issue 7900

Topics (messages 318572 through 318583):

Regex
        318572 by: Ethan Rosenberg
        318573 by: Simon Dániel
        318574 by: Stuart Dallas
        318575 by: Sebastian Krebs
        318576 by: Ashley Sheridan
        318577 by: David Harkness
        318578 by: shiplu
        318579 by: Al
        318580 by: David Harkness
        318581 by: Al
        318582 by: Sebastian Krebs

Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP
        318583 by: JeffPGMT

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Dear list -

I've tried everything  and am still stuck.

A regex that will accept numbers, letters, comma, period and no other characters

Thanks.

Ethan Rosenberg



--- End Message ---
--- Begin Message ---
#[0-9a-zA-Z,.]#

2012/7/27 Ethan Rosenberg <eth...@earthlink.net>

> Dear list -
>
> I've tried everything  and am still stuck.
>
> A regex that will accept numbers, letters, comma, period and no other
> characters
>
> Thanks.
>
> Ethan Rosenberg
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
On 27 Jul 2012, at 18:07, Ethan Rosenberg <eth...@earthlink.net> wrote:

> I've tried everything  and am still stuck.
> 
> A regex that will accept numbers, letters, comma, period and no other 
> characters

/^[0-9a-zA-Z,\.]+$/

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/

--- End Message ---
--- Begin Message ---
Hi,

Am 27.07.2012 19:07, schrieb Ethan Rosenberg:
Dear list -

I've tried everything  and am still stuck.

A regex that will accept numbers, letters, comma, period and no other
characters

This?

/^[0-9a-zA-Z,.]$/

Regards,
Sebastian



Thanks.

Ethan Rosenberg





--- End Message ---
--- Begin Message ---

"Simon Dániel" <simondan...@gmail.com> wrote:

>#[0-9a-zA-Z,\.]#
>

You should escape out that period as it will match any character otherwise.
Thanks,
Ash
http://ashleysheridan.co.uk

--- End Message ---
--- Begin Message ---
On Fri, Jul 27, 2012 at 10:16 AM, Ashley Sheridan
<a...@ashleysheridan.co.uk>wrote:

> "Simon Dániel" <simondan...@gmail.com> wrote:
>
> >#[0-9a-zA-Z,\.]#
>
> You should escape out that period as it will match any character otherwise
>

The dot only matches a period inside a character class [...].

David

--- End Message ---
--- Begin Message ---
>#[0-9a-zA-Z,\.]#
> >
>
> You should escape out that period as it will match any character otherwise.
> Thanks,
> Ash
>

Ash, Thats not true. In character class only meta-characters are \ ^ - [
and ]. This is the rule of PCRE (see
http://www.pcre.org/pcre.txt<http://www.pcre.org/pcre.txt#CHARACTERS%20AND%20METACHARACTERS>).
I assume we are talking about pcre as everybody used delimiter here which
is required in pcre.

-- 
Shiplu.Mokadd.im
ImgSign.com | A dynamic signature machine
Innovation distinguishes between follower and leader

--- End Message ---
--- Begin Message ---


On 7/27/2012 1:07 PM, Ethan Rosenberg wrote:
Dear list -

I've tried everything  and am still stuck.

A regex that will accept numbers, letters, comma, period and no other characters

Thanks.

Ethan Rosenberg




"%[\w\d,.]%"

--- End Message ---
--- Begin Message ---
On Fri, Jul 27, 2012 at 11:43 AM, Al <n...@ridersite.org> wrote:

> "%[\w\d,.]%"
>

"\w" will match digits so "\d" isn't necessary, but it will also match
underscores which isn't desired.

David

--- End Message ---
--- Begin Message ---


On 7/27/2012 2:56 PM, David Harkness wrote:
On Fri, Jul 27, 2012 at 11:43 AM, Al <n...@ridersite.org> wrote:

"%[\w\d,.]%"


"\w" will match digits so "\d" isn't necessary, but it will also match
underscores which isn't desired.

David

You're correct, I forgot about the darn _ and \w includes digits

So, how's about this.
"%(?!_)[\w,.]%"


--- End Message ---
--- Begin Message ---
Am 27.07.2012 19:54, schrieb shiplu:
#[0-9a-zA-Z,\.]#


You should escape out that period as it will match any character otherwise.
Thanks,
Ash


Ash, Thats not true. In character class only meta-characters are \ ^ - [

And the dash only when it's not the first, or the last in the class.

and ]. This is the rule of PCRE (see
http://www.pcre.org/pcre.txt<http://www.pcre.org/pcre.txt#CHARACTERS%20AND%20METACHARACTERS>).
I assume we are talking about pcre as everybody used delimiter here which
is required in pcre.



--- End Message ---
--- Begin Message ---
Please correct me if I'm wrong and IMAP is available (maybe a known config 
issue?)

Mac OSX 10.7, Using the pre-installed Apache & Php, IMAP is not installed, 
pulled out my Apple for this server OS.

$ php -v
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll' - 
dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_imap.dll, 9): 
image not found in Unknown on line 0
PHP 5.3.10 with Suhosin-Patch (cli) (built: Feb 20 2012 22:55:53)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

Because Mac choose to not include "make" or IMAP (c-client 2007e or f) 
support in the pre-installed PHP...

Can I install PHP into another folder and then copy it over the 
pre-installed location/folder?

As I understand it "Make" requires the developer tools which I'm reluctant 
to install as I'm not IT and this is not a dev box.

So, where can I find a version of PHP that does not require "make" which is 
not included in 10.7 nor to my knowledge 10.8? 



--- End Message ---

Reply via email to