string comparison

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm writing a command line utility that will be able to have grep like functionality on an obfuscated file. Most of the things I’ve been able to figure out up till now, but the regexp part is still a problem.
I need to take a regexp as an argument from the command line and test if to a string.
Can anyone point me in the right direction, as in what functions and modules I should browse trough to get this problem fixed ?

Thanks

Bas
 
I'm writing a command line utility that will be able to have grep
like functionality on an obfuscated file. Most of the things I?ve
been able to figure out up till now, but the regexp part is still a
problem.
I need to take a regexp as an argument from the command line and test
if to a string.
Can anyone point me in the right direction, as in what functions and
modules I should browse trough to get this problem fixed ?

Not sure what your actual *problem* part is. What goes wrong when you
try just creating a regexp from a command line argument?
 
The problem is much more general than that, I can't see the forest trough the trees.
The C# book I picked up doesn't cover regexp, And when I try and work my way trough the msdn site I keep ending up w/ char array functions instead of string functions.
I need to know what the name of the functions for doing regexp stuff is.
 
Bas Hamer said:
The problem is much more general than that, I can't see the forest
trough the trees.
The C# book I picked up doesn't cover regexp, And when I try and work
my way trough the msdn site I keep ending up w/ char array functions
instead of string functions.
I need to know what the name of the functions for doing regexp stuff is.

Look up the System.Text.RegularExpressions.Regex class.

The MSDN entry under "regular expressions" in the index which is "about
regular expressions" gives a pretty good starting point, with examples
etc.
 
Back
Top