Thread:Project:Support desk/Scribunto : Warning: preg replace callback(): Compilation failed: unknown property name after \P or \p at offset 7 in /Users/dan/websites/gwtoolset/core/extensions/Scribunto/engines/LuaCommon/UstringLibrary.php on line 643

MediaWiki	1.22alpha (8967ed3) 01:48, 13 September 2013 PHP 5.3.15 (apache2handler) MySQL 5.6.10 Lua 5.1.5 Scribunto (32bb3e2) 21:27, 9 September 2013 in a local wiki, whenever i use Special:Import to do a clean import the Template:TemplateBox template from commons i see this warning when running the. also, this error appears every time i visit the Template:Lang_links page in that wiki:

 2013-09-14 09:11:23 refreshLinks Template:Lang_links masterPos= rootJobSignature=d11df2eab71de9ae9409a4b2c5aeff5079cf9b99 rootJobTimestamp=20130914091105 STARTING Warning: preg_replace_callback: Compilation failed: unknown property name after \P or \p at offset 7 in /core/extensions/Scribunto/engines/LuaCommon/UstringLibrary.php on line 643

here’s the code at that point in the file : 642   $count = 0; 643   $s2 = preg_replace_callback( $re, $cb, $s, $n, $count ); 644   return array( $s2, $count );

and the parameters, except for $cb and $count: $re = /^\p{Xps}*\[*\[\[(?.*?)\]\]\]*\p{Xps}*$/us $s = Template:Lang links $n = 1


 * 1) it looks like the property code \p{Xps} is not a valid property according to the table http://php.net/manual/en/regexp.reference.unicode.php.
 * 2) line 254 of   indicates that Lua charset 's' = '\p{Xps}'.
 * 3) is there another property code that could be used?
 * 4) would \p{Zs} be okay?
 * 5) according to http://www.pcre.org/pcre.txt, Xps = Any POSIX space character
 * 6) when i replace Xps with Zs, it gets rid of the preg_replace_callback error, but i don't know enough about this to properly replace Xps.

in any case, the result is that the Template:Lang_links shows a Lua “Script error” message.

any ideas on how to correct this error?