Mike Coleman wrote: >> >>> parse("hello 1 2 3 4 # 5", "(\w+)", "\s*(\d+)") >> ('hello', ['1', '2', '3', '4'], ' # 5') > > No offense, but this code makes me cringe. The "|." trick seems like a > horrific hack "or any other character" a horrific hack? that's RE 101, really. and you're supposed to *use* the code, not stare at the implementation. programming is all about abstractions, remember? </F>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4