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....

Recommended Answers

All 2 Replies

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.