$uri match_regex “^/(sell)”
Hi,can someone know the meaning of “()” here? what is the function of ()
also match_regex “^/(sell|cjj|bpm|)”,what does the “|” mean here
$uri match_regex “^/(sell)”
Hi,can someone know the meaning of “()” here? what is the function of ()
also match_regex “^/(sell|cjj|bpm|)”,what does the “|” mean here
The “()” are used for logical grouping.
The “|” is for Alterations.
There is a nice Regular Expressions Cheat Sheet here:
http://opencompany.org/download/regex-cheatsheet.pdf
You can get a nice one for .NET here: