Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
>= Number regex generator
# >= Number number = input() l = len(number)-1 result = "(?:^|Amount: )(?:" for i in range(l): result += number[:i] + "[{}-9]".format(int(number[i])+1) + "\d{" + str(l-i) + "}|" result += number[:l] + "[{}-9]|".format(number[l]) + "\d{" + str(l + 2) + ",})(?:[.,]|$)" print(result)
run
|
edit
|
history
|
help
0
Python if condition
My first experience on rextester !
metods.py
PyWeekD
sheru
pytest
Python
HW4
Convert list into set
Sum