locked
parsing "\(|.*?)|)" - Too many )'s. RRS feed

  • Question

  • User1654853431 posted

    I am receving this error when writing this...

    private static Regex resourceTextsREGEX = new Regex(@"\(|.*?)|)", RegexOptions.Singleline | RegexOptions.Compiled | RegexOptions.IgnoreCase);
     
    I want a regular expression for these two things 
    1- {Text}
    2- |Text|
     
    I want to be able to get those matches and replace them with something ...can someone help please?

     

    Monday, June 20, 2011 5:03 PM

All replies

  • User1519636740 posted

    hi,

    generate regular expression from http://www.txt2re.com/index.php3

    Friday, June 24, 2011 5:16 AM