Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 15th, 2007, 01:53 AM
Registered User
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Searching an expression in a text file.

I am facing problem of matching an expression in a text file using C# in ASP.NET. The expression used will look like: ((apple AND orange) OR (car OR lorry)). A text file will be use to search for those keyword matching with the expression given. Do any one has any idea of how to perform the matching for expression mentioned above?

Old January 15th, 2007, 11:18 AM
Authorized User
Join Date: Sep 2003
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts


On the surface, this doesn't appear to be too difficult a task. In general, I use regular expressions for matching operations. Regular expressions are quite powerful. Because they are so powerful, they are also somewhat complex. You might start by checking out the following link:


If you have further, specific questions, I'll be happy to assist.


- Roger Nedel

Similar Threads
Thread Thread Starter Forum Replies Last Post
substitute text() node value in XPath expression Coolcampers XSLT 4 April 30th, 2008 08:39 AM
searching a text file for repeated numbers Un33k Visual Basic 2005 Basics 1 October 30th, 2007 01:50 PM
Help extracting text from a regular expression crazymanju BOOK: Beginning Regular Expressions 0 April 10th, 2007 05:43 AM
highlighting the text after searching shazia1 VS.NET 2002/2003 0 April 1st, 2006 04:37 PM
Searching for a carriage return in a text field levinll SQL Language 3 March 10th, 2004 04:00 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.