Forum Moderators: coopster
For example
What that /U stands for?
preg_replace('/<a.*href="([^"])/U', '../$1', $url);
does it regard only the first uppercase character or all uppercases or something else?
I found a way to grasp the concept
1) Trying to understand the tutorialsSSS (so many!)
2) And when writing or reading a sample I read it but translate it in pure English if it does not make sense or does not seem to be logical then something got to be wrong.
Say you have:
text text text <a href="link">anchor</a>text text text <a href="link2">anchor2</a>
pattern: /a href="(.*)"/
returns: link">anchor</a>text text text <a href="link2
pattern: /a href="(.*)"/U
returns: link
The modifier "i" makes the search case-insensitive.
[us2.php.net...]