Skip to content

Regex Find and search examples are same #100

Description

@saikamal33

Both the code in 03-regex-findall.py and 03-regex-search.py is same search example
Here is a suggestion for findall:

import re

text = "The quick brown fox jumps over the quick brown dog"
pattern = r"quick"

Find all occurrences of the pattern 'quick'

matches = re.findall(pattern, text)
print("Matches found:", matches) # Output: Matches found: ['quick', 'quick']

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions