×
Inicio Aleatorio

PHP RegEx: Match a pattern at the end of the string

Sección: Programación

Creado: 01-11-19 (Actualizado: 08-02-20)

In previous tutorial we have a pattern that match a string at the beggining using caret(^). Now we try to match the pattern at the end of the string using \z. What is \z? This is end of subject or read at the end of subject. We still use (i) case insensitive modifier so that it can read any case.

https://www.sourcecodester.com/php/6816/php-regex-match-pattern-end-string.html

Siguiente Enlace