easy regexp by murky-satyr

+function f(r,o){r.replace(/(\W(.*?)[\])]|.)(\??)(.*)/g,function(m,s,p,q,t){q&&f(t,o)
for([,x]in/^\(/(m)?p.split('|'):p||s)f(t,o+x)})||print(o)}(readline(),'')

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page