Click here to Skip to main content
15,881,803 members
Articles / Desktop Programming / MFC

Adding Regular Expressions to Your App with Regex++

Rate me:
Please Sign up or sign in to vote.
4.67/5 (20 votes)
17 Jun 2002CPOL10 min read 433.9K   3.1K   93  
A tutorial to demonstrate adding regular expressions to your project using Regex++ from boost.org.
// RegexTest.h : main header file for the REGEXTEST application
//

#if !defined(AFX_REGEXTEST_H__2FC1B9A6_B702_4689_B9FB_32FD22C76711__INCLUDED_)
#define AFX_REGEXTEST_H__2FC1B9A6_B702_4689_B9FB_32FD22C76711__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols

/////////////////////////////////////////////////////////////////////////////
// CRegexTestApp:
// See RegexTest.cpp for the implementation of this class
//

class CRegexTestApp : public CWinApp
{
public:
	CRegexTestApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRegexTestApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CRegexTestApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_REGEXTEST_H__2FC1B9A6_B702_4689_B9FB_32FD22C76711__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
Matt Long is the Director of Technology for Skye Road Systems, Inc. in Colorado Springs, Colorado. He provides software architecture consulting services to small businesses. To contact Matt ( perlmunger ) send an email to matt@skyeroadsystems.com.

Comments and Discussions