I am porting some libraries from PHP to JavaScript and I came across this regular expression, some parts of it are unclear to me.
#(?: *+(?<= |^)\.((?:\([^)\n]++\)|\[[^\]\n]++\]|\{[^}\n]++\}|<>|>|=|<){1,4}?))#
Unclear parts are
*+
++
I know, that this expression should accept strings like
.(title)[class]{style}<>
.[class]{style}<>
.[class](title){style}
// and so one - no metter of order \(.+\), \[.+\] and \{.+\} parts
// and optional <>, >, = or < at the end
This expression is used with PCRE_UNGREEDY
modifier.
The :-) notation is known as a smiley, and means that the statement it follows was intended as humor. When you tilt your head to the side, you see that : is the eyes, - the optional nose, and ) is the mouth.
What Does :/ Mean? :/ is an emoticon used to indicate indecision, skepticism, exasperation, and annoyance. The emoticon :/ is one of the most difficult to define. It can indicate a wide range of emotions, including (but not limited to) indecision, skepticism, exasperation, and annoyance.
Summary of Key Points "Very Happy" is the most common definition for :D. on Snapchat, WhatsApp, Facebook, Twitter, Instagram, and TikTok. :D.
The ampersand symbol & is used in C++ as a reference declarator in addition to being the address operator.
++
From What is double plus in regular expressions?
That's a Possessive Quantifier.
It basically means that if the regex engine fails matching later, it will not go back and try to undo the matches it made here. In most cases, it allows the engine to fail much faster, and can give you some control where you need it - which is very rare for most uses.
*+
*+
is the possessive quantifier for the *
quantifier.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With