CommonRegex
CommonRegex copied to clipboard
A collection of common regular expressions bundled with an easy to use interface.
You just apply all regex on create instance of class. IMO is much better to do it in lazy way usign sth like cached properites.
There seems to be an issue parsing prices. The extracted price figure is sometimes truncated for values in the thousands or greater Example: cr.CommonRegex("$6000").prices return ["$600"] instead of ["$6000"]
Thanks for build this commonregex and convenient to our works,but i still have a question. Why it costs too much time?Also my cpu temperature rise rapidly.(the length of my content...
Currently this isn't in the latest pip version that's published it seems.
Fixed the Empty String issue and Added a print String feature so that user may know the Input.
> > > test = CommonRegex('') > > > test.dates > > > > > > test.dates() > > > [] > > > test = CommonRegex('asdasd') > > >...
`While a hostname is not supposed to contain an underscore, a DNS entry can, which I think ends up being more relevant to what valid email addresses exist.`
Is it possible to maintain a .md file with verbose regexes so contributors can understand it better and maybe improve or add features?
Cool as this already is, it would be even cooler if it supported non-US phone numbers. I'd try and do it myself, but given how little I currently know about...