You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/h.*llo/ the "STAR" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
A) This sems to be false : The STAR characters does not match any character. It is a special character for multi-items pattern.
a REGEX-PATTERN followed by a STAR means "0 or more" of the preceding PATTERN.
Additional parameters may specify : "more" means "as many as possible" (this is a "greedy" behavior) or "as little as possible" (this is "non-greedy" behavior).
So, you might have wanted to write : ".*"
"The POINT followed by a STAR matches any character...etc."
B) After "any character" you forgot to specify + "other than a new line character." as you did in previous comment, so in order to have consistent explanations, would it be better to add it?
-- KUTGW & best regards
The text was updated successfully, but these errors were encountered:
Hello again,
I was reading this :
/h.*llo/ the "STAR" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
A) This sems to be false : The STAR characters does not match any character. It is a special character for multi-items pattern.
So, you might have wanted to write : ".*"
"The POINT followed by a STAR matches any character...etc."
B) After "any character" you forgot to specify + "other than a new line character." as you did in previous comment, so in order to have consistent explanations, would it be better to add it?
-- KUTGW & best regards
The text was updated successfully, but these errors were encountered: