AS split \
AS split \
Out of context: Reply #2
- Started
- Last post
- 4 Responses
- Solid0
Damn - the server escaped my escape sequences :D
#2 should read as follows, but remove the spaces between the "\" slashes:
2/ for every "\" you need to add a "\" to escape it, so:
var path = "C:\Windows\Fonts";
becomes
var path = "C:\ \Windows\ \Fonts";
then you can split it like this:
var a = path.split("\u005c");
where "\u005c" is the unicode equivalent of "\"