Am doing normal computer things such as:

BEGIN { FPAT = "([^ ]*)|(\"([^\"]|\\\\\")+\")" }

Problem! This breaks on:

"\\" "foo bar" field3

It thinks that the first field is "\\" " and the second field is foo instead of the first field being "\\" and the second field being "foo bar"

Is this even solvable with regexes or is this one of the things that run into a counting problem that can't be solved with regexes?

Follow

@vaporeon_ i think you’re onto something there; iirc nested bracketing symbols isn’t in the set of regular languages, and doing this robustly is basically an equivalent purroblem

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.