Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a mispelled sentence the Cheat Sheet? #53

Open
Gitoo22 opened this issue Mar 3, 2020 · 0 comments
Open

Is there a mispelled sentence the Cheat Sheet? #53

Gitoo22 opened this issue Mar 3, 2020 · 0 comments

Comments

@Gitoo22
Copy link

Gitoo22 commented Mar 3, 2020

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.

  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant