The following code does not seem to work, I have tried all
combinations of \\, \, \\\ etc. Unfortunately I can not change str .
<script type="text/javascript">
var str = 'Hello \ World';
var pattern = /\\/;
result = str.split( pattern );
alert(result[0]);
</script>
combinations of \\, \, \\\ etc. Unfortunately I can not change str .
<script type="text/javascript">
var str = 'Hello \ World';
var pattern = /\\/;
result = str.split( pattern );
alert(result[0]);
</script>
Comment