<?php $pattern = '/.*(?<!%)([A-Z0-9])?[A-Z]+.*/'; $string = 'a%C3%B1o'; $res = preg_match ( $pattern, $string, $result ); var_dump( $res, $result );
You have javascript disabled. You will not be able to edit any code.