Problem/Motivation
There are some preg_match calls that can be replaced with either str_starts_with(),str_ends_with() or similar. PHPStorm has an inspection that runs this check automatically to most cases
Steps to reproduce
Proposed resolution
Do it
Remaining tasks
TBD
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A