It's fine to link to your site so long as it's relevant/useful and not just spam.
Thanks for the tip. I wasn't sure.
Why would you need it? PCRE support hex character codes.
You're right. I can't think of a good reason to use octal code. Once upon a time I thought I needed it for something like:
Code:
<?php
$string="qqertqqqbbbddqqertq";
$r="\336";
$string = preg_replace('/[bd]/', $r, $string);
echo "$string";
?>
But I know now that that is due to the ftp program that I was/am using. That and I see little reason to want to replace a pattern with something like a tab, but octal code should do the trick and I do not know of another way to do that. I seem to remember needing to use octal code for my scripts when nothing else would work. Too long ago for me I'm afraid.
Perl and PCRE are nearly identical
ok, the regular expression aspect of Perl is nearly identical to PCRE, but I thought that was implied when I said
hence Perl Compatible Regular Expressions
probably not though
Bookmarks