Voting

: max(two, five)?
(Example: nine)

The Note You're Voting On

mike at eastghost dot com
13 years ago
"line break" is ill-defined:

-- Windows uses CR+LF (\r\n)
-- Linux LF (\n)
-- OSX CR (\r)

Little-known special character:
\R in preg_* matches all three.

preg_match( '/^\R$/', "match\nany\\n\rline\r\nending\r" ); // match any line endings

<< Back to user notes page

To Top