02-17-2009, 01:37 PM
|
#5 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,239
Thanks: 3
|
Quote:
Originally Posted by Wildhoney
The .+? says any character but white space
|
Not strictly true. By default, . will match any character which isn't the newline character (so the same as [^\n]): any other whitespace character (like space, tab, carriage return) will be matched. With the s (PCRE_DOTALL) modifier, the dot will match any character (including the newline).
__________________
salathe@php.net
|
|
|
|