PHP string replace modifiers -
I'm trying to write a function instead of some string, and instead of asking how to change something, I I want to know more about modifier so I can do it myself
Take it for example:
preg_replace ('~ [\ w \ s] ~ ~ , '', $ Input); or
string (preg_replace ('! ^ ^ A-Z] +!', '', $ S); What are those people called? (~ [\ W \ s] ~) (! [A-Z] +!) They have little understanding to read or create a new one. Where can I find them all? Or learn to write them?
They are called regular expressions, 'a regular expression (reggae or red xp short) is a search pattern There is a special text string to describe. You can think of regular manifestations in the form of wildcards on steroids. '
There is a reference and a playground to work with them here.
Comments
Post a Comment