var re = /@(\w+)/gm; var str = '@one two @three';var m; while ((m = re.exec(str)) !== null) { print(m[1]);}
Standard input is empty
one three
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!