Multiple regex options with C# Regex

前端 未结 5 1367
借酒劲吻你
借酒劲吻你 2021-01-03 23:28

Assume I have this:

Regex.Replace(\"aa cc bbbb\",\"aa cc\",\"\",RegexOptions.IgnoreCase);

But I also need to ignore white-spaces. So, I fo

5条回答
  •  情书的邮戳
    2021-01-04 00:02

    According to MSDN:

    A bitwise OR combination of RegexOption enumeration values.

    So just use OPT_A | OPT_B

提交回复
热议问题