Skip to content

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

@fwesselhoft

Description

@fwesselhoft

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!

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