prem 0

prem 0

  • NA
  • 1
  • 0

Using RegEx with mete charecters

Sep 2 2005 7:10 AM
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)