02-17-2009, 02:37 PM
|
#5 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
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).
|
|
|
|