Created
August 16, 2018 03:52
-
-
Save elzup/a72b1c5d9c39b26d4530247d5e20e74c to your computer and use it in GitHub Desktop.
dump new name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sre_yield | |
if __name__ == '__main__': | |
# abcdefghijklmnopqrstuvwxyz | |
# bcd fgh jklmn pqrst vwxyz | |
# d g j mn p st v yz | |
# dgjmnstvyz | |
rbon = "[aiueo]" | |
rsin = "[dgjmnstvyz]" | |
regex = "a{rsin}{rbon}p{rbon}n|ap{rbon}{rsin}{rbon}n".format(rbon=rbon, rsin=rsin) | |
names = list(sre_yield.AllStrings(regex)) | |
print(len(names)) | |
print("\n".join(names)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment