Last modified: 2007-12-04 03:34:04 UTC
*** DefaultSettings.php 2007-09-11 05:36:51.000000000 +0800 --- /tmp/DefaultSettings.php 2007-10-19 02:01:40.224675928 +0800 *************** *** 1809,1811 **** $wgSpamRegex = false; ! /** Similarly you can get a function to do the job. The function will be given * the following args: --- 1809,1812 ---- $wgSpamRegex = false; ! /** ^ and $ match the beginning and end of the entire text, not just one line. ! * Similarly you can get a function to do the job. The function will be given * the following args:
Since the complete regex is under your control, you may match per-line with the //m option. Nor would ^ and $ have anything to do with the callback option which the modified comment describes.
What I'm trying to say is it is not clear to people used to man perlop, ^ Match the beginning of the line $ Match the end of the line (or before newline at the end) just what the scope is that you are matching, and it might be good to add some words about it.