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

Written by
Link to Post

https://www.reddit.com/r/golang/comments/ae1pe5/how_do_i_make_it_so_match_group_order_doesnt/

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:
reddit

Leave a Reply