Marco

Marco

  • NA
  • 59
  • 0

Regex

Sep 20 2009 2:02 PM
Hello,
 new to Regex I need an hint how the special characters work; I must split a string that contains an XML file splitting by
<, >, /> and =
Moreover inside the xml I have some lines like this:
    <output mess="Array<Token>"/>
but in that case I don't need to split it; every thing inside the " " mustn't be split
I wrote this:
        static public String[] tokenize(string filetext) {
            Regex  reg = new Regex(@"<");

            return (reg.Split(filetext));           
        }

But it only return the original string without '<'. It's not what I need but maybe you can suggest me what I'm looking for.

thanks,

Answers (1)