Regex help

V

Vai2000

Hi All, Can someone help me out with the syntax of a regular expression
which searches a string for the pattern
XYZ*
and breaks the contents on based of it.

Regex r = new Regex("XYZ*");

string[] s = r.Split(content);



doesn't work



TIA
 
G

Guest

The * has to be escaped, making the logical progression if that doesn't work XYZ\*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Regex 2
simple regex question? 2
Regex - how can I eliminate spaces and get the words? 1
Newbie question about Regex 8
RegEx Help!! 2
Var type 4
Regex help 1
Regex help needed 1

Top