954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

File and RE as the Input...

Hi friends..,i have a problem regarding the regular expressions.My problem is to input a file name and a regular expression to a program and program have to read all the lines of the file and produce the substrings (if present) produced by the Regular expression...I know to input a file but is there any way to input a regular expression and how can i define it in the programming language....

vinaychalluru
Newbie Poster
6 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

I would depend on the programming language. Boost has a regexp library for c++.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

You input the regex the same way you input the file name. What is the confusion here?

Rashakil Fol
Super Senior Demiposter
Team Colleague
2,658 posts since Jun 2005
Reputation Points: 1,135
Solved Threads: 177
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You