Parsing and regex

I remember reading somewhere that using regular expressions to parse lines from IRC was not recommended.

I have since used other methods, but I just tried making a complete regex for timeouts/bans, and it seems failproof.

TLDR:
Does anyone have any opinions, warnings or recommendations for using regex to parse raw chatlines from TMI?

Only warning I have is that sometimes Twitch adds/removes key values to their IRC strings without warning occasionally. That obviously affects both regex and other methods (ie split).

It doesn’t affect it if you’re parsing the tags into a string=>string map.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.