I am trying to convert a certain regex from ECMAScript flavor to Golang flavor, here it is :
((r|)+)(( |\n)*)((|e)+)(( |\n)*)((p|)+)(( |\n)*)((|o)+)(( |\n)*)((|s)+)(( |\n)*)((t|)+)
Basically the point is to match messages like "r p O s t". I've tried to replace " " by "\s" but it's still not working. Any idea please?