4 ms·
Related: One reason I just started using Rainforest API is because Github Copilot recommended it. But also last night I tried for 30 minutes to get it to write
by weird-eye-issue 4y ago
Related: One reason I just started using Rainforest API is because Github Copilot recommended it.
But also last night I tried for 30 minutes to get it to write me some fairly simple HTML parsing code. The tricky part was I couldn't use DOMParser since it was running on Cloudflare Workers and it could never produce any working implementation using HTMLRewriter or regex no matter how many examples I gave it
- ryankrage77 4y agoAre you aware of the pitfalls of parsing HTML with regex?
- weird-eye-issue 4y agoYes, but it started to try to use regex so I thought I'd see if it could at least be successful and it wasn't. Despite super simple HTML. Anyways, I wrote a solution using HTMLRewriter in 10 minutes...