2 ms·
Why would you ever use a regex to do this, apart from experimenting? This would be much easier to do with a context free grammar or any decent parsing library.
by Ov3rload 11y ago
Why would you ever use a regex to do this, apart from experimenting?
This would be much easier to do with a context free grammar or any decent parsing library.