|
|
|
|
|
by jdwhit2
4999 days ago
|
|
This examples looks like it covers a large number of cases: extractValues('John Doe <john@example.com> (http://example.com)', '{name} <{email}> ({url})')
>> {'name': 'John Doe', 'email': 'john@example.com', 'url': 'http://example.com' }
What kinds of problems would you run into vs using regex? My thoughts were that you lose some control of your matches. |
|