K
kids_pro
Hi there,
Could someone help me out from this situation?
I want to write a pattern to search and replace.
string pat = "e([\u1780-\u17A2]\u17D2[\u1780-\u17A2])a";
string result = Regex.Replace(instr, pat, "$1\u17CE");
What I want is to make this part \u17D2[\u1780-\u17A2] as optional.
I have tried it this way: string pat =
"e([\u1780-\u17A2]\u17D2?[\u1780-\u17A2]?)a";
but it seem not working.
Please advice.
Regards,
Kids
Could someone help me out from this situation?
I want to write a pattern to search and replace.
string pat = "e([\u1780-\u17A2]\u17D2[\u1780-\u17A2])a";
string result = Regex.Replace(instr, pat, "$1\u17CE");
What I want is to make this part \u17D2[\u1780-\u17A2] as optional.
I have tried it this way: string pat =
"e([\u1780-\u17A2]\u17D2?[\u1780-\u17A2]?)a";
but it seem not working.
Please advice.
Regards,
Kids