How do I make it so match group order doesn’t matter without positive lookahead?

Written by
Link to Post

I have three match groups and I really don’t want to have to write 9 separate regexs just to catch them in any possible order. The only way I was able to figure out how to do it was with positive lookahead, and then found out golang doesn’t even support that lol. Anyone know an alternative?

submitted by /u/peachiestpink
[link] [comments]

Article Tags:
· ·
Article Categories:

Leave a Reply