: I am trying to split a string containing "filename.wav"
:
: I tried the following
:
: String[]stringArray = fileString.split(".")
:
: and also
:
: String[]stringArray = fileString.split("\.")
:
: Somehow I can't get JAVA to split it on the "." symbol because it is
: a reserved character in regular exressions. I read the page on
: regular expressions and couldn't find a way for it to recognize this
: character. I even tried it in octal and hex format...
:
: Help!!
:
:
:
I've had a similar problem, and solved it using the regex character-selection group: []. Example:
split("[.]");