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.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>Acme, Inc. - Contact Information</title>

</head>

<bodybgcolor="white" leftmargin="0" topmargin="0" marginwidth=0 marginheight=0 link="green" alink="green" vlink="black">

	<div align="center">
<table width="350" cellspacing="0" cellpadding="5" border="0">
<tr>
    <td width="5">&nbsp;
	
		</td>
    <td valign="top">
	<font face="arial,helvetica" size="2">
	<h2>Contact Us</h2>
	<P>Just fill out the form below to send us your question or comment. We will be happy to respond if you so desire.</P> 
<div align="center">
<form action="cgi-bin/feedback.cgi" method="post">
                  <table cellpadding=3 cellspacing=1 border=0 bgcolor="#006633" width="420">
                    <tr> 
                      <td valign="top"> 
                        <div align="right"><b><font face="arial,helvetica" size="2" color="#FFFFFF"> 
                          Name:<br>
                          </font> </b></div>
                      </td>
                      <td valign="top" bgcolor="#FFFFFF"> 
                        <input type="text" name="name" size=20 maxlength=40>
                        <br>
                      </td>
                    </tr>
                    <tr> 
                      <td valign="top"> 
                        <div align="right"><b><font face="arial,helvetica" size="2" color="#FFFFFF"> 
                          Email:<br>
                          </font> </b></div>
                      </td>
                      <td valign="top" bgcolor="#FFFFFF"> 
                        <input type="text" name="email" size=20 maxlength=40>
                        <br>
                      </td>
                    </tr>
                    <tr> 
                      <td valign="top"> 
                        <div align="right"><b><font face="arial,helvetica" size="2" color="#FFFFFF"> 
                          Address:<br>
                          </font> </b></div>
                      </td>
                      <td valign="top" bgcolor="#FFFFFF"> 
                        <input type="text" name="address" size=20 maxlength=40>
                        <br>
                      </td>
                    </tr>
                    <tr> 
                      <td valign="top"> 
                        <div align="right"><b><font face="arial,helvetica" size="2" color="#FFFFFF"> 
                          Address 2:<br>
                          </font> </b></div>
                      </td>
                      <td valign="top" bgcolor="#FFFFFF"> 
                        <input type="text" name="address2" size=20 maxlength=40>
                        <br>
                      </td>
                    </tr>
                    <tr> 
                      <td valign="top"> 
                        <div align="right"><b><font face="arial,helvetica" size="2" color="#FFFFFF"> 
                          City:<br>
                          </font> </b></div>
                      </td>
                      <td valign="top" bgcolor="#FFFFFF"> 
                        <input type="text" name="city" size=20 maxlength=40>
                        <br>
                      </td>
                    </tr>
                    <tr> 
                      <td valign="top"> 
                        <div align="right"><b><font face="arial,helvetica" size="2" color="#FFFFFF"> 
                          State:<br>
                          </font> </b></div>
                      </td>
                      <td valign="top" bgcolor="#FFFFFF"> 
                        <input type="text" name="state" size=2 maxlength=2>
                        <br>
                      </td>
                    </tr>
                    <tr> 
                      <td valign="top"> 
                        <div align="right"><b><font face="arial,helvetica" size="2" color="#FFFFFF"> 
                          Zip Code:<br>
                          </font> </b></div>
                      </td>
                      <td valign="top" bgcolor="#FFFFFF"> 
                        <input type="text" name="zip" size=10 maxlength=10>
                        <br>
                      </td>
                    </tr>
                    <tr> 
                      <td valign="top"> 
                        <div align="right"><b><font face="arial,helvetica" size="2" color="#FFFFFF"> 
                          Phone Number:<br>
                          <font size=1>(xxx-xxx-xxxx)<br>
                          </font> </font></b></div>
                      </td>
                      <td valign="top" bgcolor="#FFFFFF"> 
                        <input type="text" name="phone" size=15 maxlength=12>
                        <br>
                      </td>
                    </tr>
                    <tr> 
                      <td valign="top"> 
                        <div align="right"><b><font face="arial,helvetica" size="2" color="#FFFFFF"> 
                          Fax Number:<br>
                          <font size=1>(xxx-xxx-xxxx)<br>
                          </font> </font></b></div>
                      </td>
                      <td valign="top" bgcolor="#FFFFFF"> 
                        <input type="text" name="fax" size=15 maxlength=12>
                        <br>
                      </td>
                    </tr>
                    <tr> 
                      <td valign="top"> 
                        <div align="right"><b><font face="arial,helvetica" size="2" color="#FFFFFF"> 
                          Question/<br>
                          Comment:<br>
                          </font> </b></div>
                      </td>
                      <td valign="top" bgcolor="#FFFFFF"> 
                        <textarea name="comments" cols=30 rows=6 wrap="physical"></textarea>
                        <br>
                      </td>
                    </tr>
                    <tr bgcolor="#FFFFFF"> 
                      <td valign="top" colspan=2> 
                        <div align="right">
                          <input type="submit" value="Submit">
                          <input type="reset" value="Reset Fields">
                          <br>
                        </div>
                      </td>
                    </tr>
                  </table>
</form>
</div>
	</font></td>
</tr>
</table>

	
<br><br><br>
	</div>
	
</body>
</html>

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