TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Tommy Bell
NA
21
0
C# regex file parser
Feb 27 2008 3:58 AM
While I can do a few things in C# I have a need for making a text-parser, and I have been unable to figure out how to to this.
Essentially what it has to do is
- take threearguments and a text file,
- if the first and second argument are present in the file
- replace the first argument with the third argument given
-- Example begin
c:\> textparser.exe u Threshold News file.txt
If u and threshold are present, replace u with News
-- Example end
I am guessing this has to be done with regex, as the file has to be searched through but I am not sure.
Any help is greatly appreciated.
Regards
Reply
Answers (
11
)
Duplicate records entered on update
Beginner