1
Answer

Using RegEx with mete charecters

prem 0

prem 0

19y
1.9k
1
Hello friends,
I have problems in using RegEx.replace method
with meta-characters.

For ex: Regex.Replace("**", "/t");

Sincae * is the part of RegEx syntex it throes some errors.
I tried with "//*" and it works. But I want use many meta-charecters.

Its a console application. I want the users to input search string and reolace string.

Ex:
repit ** /t
(Replaceing two astrics with tab)

Escaping meta chars is not helping here....

Any tips?

Answers (1)