that regex is used to decide if a string made up by 7 bits ascii code or not.
comes from a UTF-8 detection library.

regards,

anru

On 28 July 2010 23:47, .Net2Php <[email protected]> wrote:
> Dan & Simon are right. The ?: is used for non-capturing groups.
>
> Your regex matches a single character that is NOT between ASCII 0x00
> and 0x7F. That represents the first 128 ASCII characters. So, it seems
> that you are trying to get the first extended ASCII character. Sounds
> like you are parsing something very interesting. :)
>
> On Jul 28, 8:55 am, ctx2002 <[email protected]> wrote:
>> preg_match('/(?:[^\x00-\x7F])/',$str).
>>
>> is any one know what is that "?:" means? and give me a web link?
>>
>> regards
>>
>> anru
>
> --
> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> To post, send email to [email protected]
> To unsubscribe, send email to
> [email protected]

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to