c# - Escaped patten causes compile error -
i have regex pattern:
r = new regex("^((\"(?:[^\"]|\"\")*\"|[^,]*)(,(\"(?:[^\"]|\"\")*\"|[^,]*))*)$");
this causing error: "cs1002: ; expected"
i can't see causing this.
if supposed c# have use lowercase new
:
r = new regex("^((\"(?:[^\"]|\"\")*\"|[^,]*)(,(\"(?:[^\"]|\"\")*\"|[^,]*))*)$");
Comments
Post a Comment