Preg_match differences?

Posted by sky on Stack Overflow See other posts from Stack Overflow or by sky
Published on 2010-04-22T07:14:29Z Indexed on 2010/04/22 7:33 UTC
Read the original article Hit count: 288

Filed under:
|
|
|

Hi, i want to ask, what is the meaning or difference between these two line?

  1. if( preg_match_all('/\#([?-?À-ÿ?-??-?a-z0-9\-_]{1,50})/iu', $message, $matches, PREG_PATTERN_ORDER) ) {

  2. if( preg_match_all('/\#([?-?a-z0-9\-_\x{4e00}-\x{9fa5}]{1,50})/iu', $message, $matches, PREG_PATTERN_ORDER) ) {

and what does the number 3 mean in this line? (Arrow pointing)

if( preg_match_all('/\@([a-zA-Z0-9\-_\x{4e00}-\x{9fa5}]{->3,30})/u', $message, $matches, PREG_PATTERN_ORDER) ) {

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about database