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

List of regex challenges #1

Open
gwenf opened this issue Feb 26, 2020 · 2 comments
Open

List of regex challenges #1

gwenf opened this issue Feb 26, 2020 · 2 comments

Comments

@gwenf
Copy link
Collaborator

gwenf commented Feb 26, 2020

Here is a list of the topics that need to be covered in our regex challenges.

  1. Match text
  2. Match lowercase [a-z]
  3. Match uppercase
  4. Match mixed case
  5. Match spaces in text
  6. Anchors: starts with ^, ends with $
  7. Or: a[bc] or a(b|c)
  8. Quantifiers: * + ? {}
  9. Special characters: \d \w \s \D $\d
  10. a(?:bc)*
  11. greedy and lazy matching: <[^<>]+>
  12. boundaries: \babc\b
  13. back references: ([abc])\1
  14. Look ahead, look behind
  15. negation operator
@gwenf
Copy link
Collaborator Author

gwenf commented Feb 26, 2020

Here are some items that I think should be included in the challenges:

  • phone numbers
  • percentages
  • urls
  • valid email
  • trim spacing
  • names
  • password requirements
  • IP address
  • currency

@Cristiano-Rocha
Copy link

what about?
match all digits that are immediately preceding by odd digit
match all html links
IPv4 and IPv6 address
md5 hash
html atributes

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

2 participants