Comment

Comment by jdwhit2

This examples looks like it covers a large number of cases:

      extractValues('John Doe <[email protected]> (http://example.com)', '{name} <{email}> ({url})')
    >> {'name': 'John Doe', 'email': '[email protected]', '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.
parent jdwhit2 14 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton