'~(<h3>(?:(?!</?h3).)*</h3>)((?:(?!my-class).)*?)(<p>.*?</p>)~is'
'~(<h3>.*?</h3>)((?:my-class(*SKIP)(*F)|.)*?)(<p>.*?</p>)~is'
'~(?>(<h3>.*?</h3>)((?:my-class()|.)*?)(<p>.*?</p>))(?!\3)~is'
preg_replace('~<(a|h1)\b.*?</\1>(*SKIP)(*F)|(222)~si', '<a href="#link">\\2</a>', $str);
PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home/a/alechas/.../public_html/UnitPay.php on line 208
array_map(function ($item) {
function ($item) {
добавили начиная с PHP 5.3$regex = "/SELECT aaa FROM bbb WHERE BINARY value='((?:\\\\.|[^'])*+)'/";
preg_match($regex, $text, $match);
preg_match('#^(?=.{2,33}$)[a-z0-9]+(?:_[_a-z0-9]+)*(?:\.[a-z0-9]+(?:_[a-z0-9]+)*)?[/]?$#', $source)
fastcgi_buffering off;
header('X-Accel-Buffering: no');
/(?|[а-яё]+([a-z]+)|[a-z]+([а-яё]+))[a-zа-яё]*/iu
^(?:1()|2()|3())/sometext/sometext/(?:\1first|\2second|\3third)$
^(?:1()|2()|3())/sometext/sometext/(?(1)first)(?(2)second)(?(3)third)$
условные подмаски^(?:1(/sometext/sometext/)first|2(?1)second|3(?1)third)$
рекурсивные подмаски function linkes($text){
return preg_replace('~((ht|f)tps?://\w[^\s"<,]{0,30})[^\s"<,]*~i', '<a target="_blank" href="$0" >$1</a>', $text);
}
$content = preg_replace( array('{<a(.*?)(wp-att|wp-content\/uploads)[^>]*><img}', '{ wp-image-[0-9]*" /></a>}'), array('<img','" />'), $content );
$content = preg_replace('~(<a\b[^>]*>)?<img[^>]*>(</a>)?~i', '', $content);
/^(?=.*[а-яё])(?=.*\d)[а-яё\d]+$/ui
/^(?:[а-яё]()|\d())++\1\2$/ui
ProxyPass /phpmyadmin !
ProxyPass / http://site.ru:3000/