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@%$&ç#!¡?¿{}ºª*/\<>¬ç#!¡?¿{}ºª*/\<>¬";
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
aA
var a = str.replace(/[^a-zA-Z0-9]/g, '');
println(a);
ready
i
var i = str.replace(/[^a-z0-9]/gi, '');
println(i)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.