Hi there Craig,
Ran the test.php as suggested from the command line and got the
following output:
Array
(
[0] => Array
(
[0] => def
[1] => 0
)
)
So from this it seems everything is fine :( Very weird. Something else I
have picked up is if I for example add a version number such as 1.0.12
then it will hyperlinked, I guess it sees it as an IP address.
Thanks,
Schalk
On 2009/11/11 10:47 PM, Craig Andrews wrote:
Hi everyone,
Just upgraded to 0.8.2 od Statusnet and hopes it would fix the problems
mentioned in the subject line magically, alas it has not :( URL's
entered are not hyperlinked and hastags are not recognized.
It seems like the regex engine isn't returning any matches, ever. That's
the only thing I could think of to explain this behavior.
Can you create a new file, say "test.php" with these contents:
<?php
$subject = "abcdef";
$pattern = '/^def/';
preg_match($pattern, substr($subject,3), $matches, PREG_OFFSET_CAPTURE);
print_r($matches);
?>
Then run "php test.php"
You should get this output:
Array
(
[0] => Array
(
[0] => def
[1] => 0
)
)
(Shamelessly stolen from the examples at
http://php.net/manual/en/function.preg-match.php)
~Craig
_______________________________________________
StatusNet-dev mailing list
[email protected]
http://lists.status.net/mailman/listinfo/statusnet-dev