i have this script:
val.split( /(?:,.| )+/ )
and i need to split any character different from letter, like new line, white space, "tab" or dot... etc
I know you cannot write all characters, so give me one good example.
i have this script:
val.split( /(?:,.| )+/ )
and i need to split any character different from letter, like new line, white space, "tab" or dot... etc
I know you cannot write all characters, so give me one good example.
_ excluded in \W, though.[\W_0-9] should cover them all.
\W: Everything which is not a letter, a number, or the underscore; then adding the _ and all digits from 0-9. This has the benefit of covering non ASCII letters such as é ü etc...
I know you cannot write all characters, so give me one good example.
In character classes, you can enumerate characters with a -; like so: [a-zA-Z]
and i need to split any character different from letter, like new line, white space, "tab" or dot... etc
You can negate a group of characters like this: [^a-zA-Z]
I have this script:
val.split( /(?:,.| )+/ )
Which can now be this script: val.split(/[^a-zA-Z]+/)