John Davidson

php - what's the best way to keep passing the pattern when you encounter a character like "á" with regex


for example I would liked to take the number 1, in this example but the question is how to by pass "Páginas" or 'á', 'é', 'ó'...

example in

I too would like to see a complete example with php...
I got by pass with this, but I thought that it isn't the best way

$pattern = '#P.ginas\sde Resultados(.*?)<\/font>#is';
echo preg_match($pattern, $subject, $result).PHP_EOL;

My Answer:
PHP is a popular server-side scripting language used for web development. It can be embedded into HTML code and is commonly used to create dynamic web pages and applications. PHP stands for Hypertext Preprocessor.

Rate this post

4 of 5 based on 3569 votes


© 2024 - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us