可変長テキストの戻り読みはできない

可変長テキストの戻り読み – 考える人, コードを書く人

可変長テキストの戻り読みはできませんよ、というお話。

[php]
$str = 'abbbbbbbbbbcghi';
$str = preg_replace('/(?<=ab+c)/', 'def', $str);
?>
[/php]

ということは出来ませんよ。ということらしいです。
ふむふむ。戻り読みは位置を指定できるというの今知りました(^_^;)

関連する記事:

Powered by

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">