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

AttributeError: 'CommonRegex' object has no attribute - ssn_number and zip_codes #50

Open
fwesselhoft opened this issue May 16, 2023 · 0 comments

Comments

@fwesselhoft
Copy link

Hi, nice tool, I have been testing it and works well. I'd love to find out if it is just me or there is a bug somewhere when using zip_codes and ssn_number options, this is my script and works fine as long as I have the two last lines commented out.

from commonregex import CommonRegex
print("STARTING COMMON REGEX")
parsed_text = CommonRegex("""SOME TEXT HERE""")
print(parsed_text.times)
print(parsed_text.emails)
print(parsed_text.links)
print(parsed_text.phones)
print(parsed_text.street_addresses)
print(parsed_text.btc_addresses)
print(parsed_text.credit_cards)
print(parsed_text.prices)
print(parsed_text.ipv6s)
print(parsed_text.ips)
print(parsed_text.dates)
#print(parsed_text.zip_codes)
#print(parsed_text.ssn_number)

Thank you!

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