<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head><meta content="text/html; charset=UTF-8" http-equiv="content-type" />
      
      <title>Escape Sequences Regular Expressions</title>
      <meta content="PortalProtect 2.6 Online Help" name="description" />
      <meta content="IE=8" http-equiv="X-UA-Compatible" />
      <link href="resources/webhelp.css" rel="stylesheet" type="text/css" />
   <link href="_wh/user/resources/jquery-ui.css" rel="stylesheet" type="text/css" /><link href="_wh/wh.css" rel="stylesheet" type="text/css" /><script src="_wh/user/resources/jquery.min.js" type="text/javascript"></script><script src="_wh/user/resources/jquery-ui.min.js" type="text/javascript"></script><script type="text/javascript">
            var whMessageTranslations =  [
                'Contents',
                'Index',
                'Search',
                'Collapse All',
                'Expand All',
                'Previous Page',
                'Next Page',
                'Toggle search result highlighting',
                'No results found for %W%.',
                '1 result found for %W%.',
                '%N% results found for %W%.'
            ];
          </script><script charset="UTF-8" src="_wh/wh.min.js" type="text/javascript"></script><script charset="UTF-8" src="_wh/search.js" type="text/javascript"></script><link href="_wh/user/tm.css" rel="stylesheet" type="text/css" /></head>
   
<body>
      <div id="wh-header">
    <table cellpadding="0" cellspacing="0" id="page-header" width="100%">
      <tr valign="top">
        <td align="left" width="115">
          <a href="http://www.trendmicro.com">
            <img alt="Trend Micro homepage" border="0" height="40" id="tm-logo" src="_wh/user/resources/trendball.png" width="104" />
          </a>
        </td>
	<td align="left" valign="middle">
          <h1 id="title">
	     <script type="text/javascript">
               $('#title').html($('meta[name=description]').attr('content'));
             </script>
	  </h1>
	</td>
      </tr>
    </table></div>
      <div id="wh-body">
         <div id="wh-navigation">
            <ul id="wh-tabs">
               <li id="wh-toc-tab"><a href="#wh-toc-pane"><span>Contents</span></a></li>
               <li id="wh-index-tab"><a href="#wh-index-pane"><span>Index</span></a></li>
               <li id="wh-search-tab"><a href="#wh-search-pane"><span>Search</span></a></li>
            </ul>
            <div id="wh-toc-pane">
               <div id="wh-toc-form"><span id="wh-toc-control"><a href="#">Collapse All</a><a href="#">Expand All</a></span><button id="wh-toc-previous">Previous</button><button id="wh-toc-next">Next</button></div><script charset="UTF-8" src="_wh/toc.js" type="text/javascript"></script></div>
            <div id="wh-index-pane">
               <div id="wh-index-form"><input id="wh-index-field" type="text" /></div><script charset="UTF-8" src="_wh/index.js" type="text/javascript"></script></div>
            <div id="wh-search-pane">
               <div id="wh-search-form"><input id="wh-search-field" type="text" /><button id="wh-search-button">Search</button><span id="wh-highlight-group"><input checked="checked" id="wh-highlight-toggle" type="checkbox" /><label for="wh-highlight-toggle">Toggle Highlight</label></span></div>
               <div id="wh-search-results"></div>
            </div>
            <div id="wh-external-search-pane"></div>
         </div>
         <div id="wh-separator"></div>
         <div id="wh-content">
      <div class="reference" id="GUID-85CD646A-C126-4CC8-9A06-4588ED4FD766" lang="en" xml:lang="en">
         <h2 class="section1-title" id="GUID-85CD646A-C126-4CC8-9A06-4588ED4FD766__GUID-A4D3FF66-A7CF-4FFC-B107-CCF41F85472A">Escape Sequences Regular Expressions <span class="topic-navigation-bar"><a accesskey="U" class="navigation-link" href="About-Regular-Expres_001.html#GUID-96033F68-736E-44D8-8771-46A074FA9278" title="Parent topic: About Regular Expressions"><img alt="Parent topic" class="navigation-icon" height="16" src="resources/parent.png" width="16" /></a></span></h2>
         <div class="refbody">
            <div class="section" id="GUID-85CD646A-C126-4CC8-9A06-4588ED4FD766__GUID-3A481E02-9073-4F55-B437-517CA325F21D">
               
               <div class="table" id="GUID-85CD646A-C126-4CC8-9A06-4588ED4FD766__table_hy3_yrj_wfb">
                  <h4 class="table-title" id="GUID-85CD646A-C126-4CC8-9A06-4588ED4FD766__GUID-52BEA2DC-4EBF-4B7A-A9E2-3B25743C5717">Escape Sequences Regular Expressions</h4>
                  <table border="1" class="tgroup">
                     <col class="colspec" width="18%" />
                     <col class="colspec" width="41%" />
                     <col class="colspec" width="41%" />
                     <thead class="thead">
                        <tr class="row">
                           <th class="header-entry">
                              
                              <div class="p">Element</div>
                              
                           </th>
                           <th class="header-entry">
                              
                              <div class="p">What It Means</div>
                              
                           </th>
                           <th class="header-entry">
                              
                              <div class="p">Example</div>
                              
                           </th>
                        </tr>
                     </thead>
                     <tbody class="tbody">
                        <tr class="row">
                           <td class="entry">
                              
                              <div class="p">\</div>
                              
                           </td>
                           <td class="entry">
                              
                              <div class="p">In order to match some characters that have special meaning in regular expression
                                 (for example, &quot;+&quot;).
                              </div>
                              
                           </td>
                           <td class="entry">
                              
                              <div class="p">(1) .REG. C\\C\+\+ matches ’r;C\C++’. </div>
                              
                              <div class="p">(2) .REG. \* matches *. </div>
                              
                              <div class="p">(3) .REG. \? matches ?.</div>
                              
                           </td>
                        </tr>
                        <tr class="row">
                           <td class="entry">
                              
                              <div class="p">\t</div>
                              
                           </td>
                           <td class="entry">
                              
                              <div class="p">Indicates a tab character.</div>
                              
                           </td>
                           <td class="entry">
                              
                              <div class="p">(stress) \t matches any block of text that contained the substring &quot;stress&quot;
                                 immediately followed by a tab (ASCII 0x09) character.
                              </div>
                              
                           </td>
                        </tr>
                        <tr class="row">
                           <td class="entry">
                              
                              <div class="p">\n</div>
                              
                           </td>
                           <td class="entry">
                              
                              <div class="p">Indicates a new line character.</div>
                              
                              <div class="note" id="GUID-85CD646A-C126-4CC8-9A06-4588ED4FD766__GUID-4241341D-FADA-4533-858B-33027A21F3E6">
                                 <table border="0" cellspacing="0" class="note-layout">
                                    <tr>
                                       <td class="note-icon"><img alt="Note" height="32" src="resources/note.png" width="32" /></td>
                                       <td class="note-text">
                                          <h5 class="note-head">Note</h5>
                                          <div class="note-body">
                                             
                                             <div class="p">Different platforms represent a new line character. On Windows, a new line is a
                                                pair of characters, a carriage return followed by a line feed. On Unix and
                                                Linux, a new line is just a line feed, and on Macintosh a new line is just a
                                                carriage return.
                                             </div>
                                             
                                          </div>
                                       </td>
                                    </tr>
                                 </table>
                              </div>
                              
                           </td>
                           <td class="entry">
                              
                              <div class="p">(stress) \n matches any block of text that contained the substring &quot;stress&quot;
                                 followed immediately by two new line (ASCII 0x0A) characters. 
                              </div>
                              
                           </td>
                        </tr>
                        <tr class="row">
                           <td class="entry">
                              
                              <div class="p">\r</div>
                              
                           </td>
                           <td class="entry">
                              
                              <div class="p">Indicates a carriage return character.</div>
                              
                           </td>
                           <td class="entry">
                              
                              <div class="p">(stress) \r matches any block of text that contained the substring &quot;stress&quot;
                                 followed immediately by one carriage return (ASCII 0x0D) character.
                              </div>
                              
                           </td>
                        </tr>
                        <tr class="row">
                           <td class="entry">
                              
                              <div class="p">\b</div>
                              
                           </td>
                           <td class="entry">
                              
                              <div class="p">Indicates a backspace character</div>
                              
                           </td>
                           <td class="entry">
                              
                              <div class="p">(stress) \b matches any block of text that contained the substring ”r;stress”
                                 followed immediately by one backspace (ASCII 0x08) character.
                              </div>
                              
                           </td>
                        </tr>
                        <tr class="row">
                           <td class="entry">
                              
                              <div class="p">\xhh</div>
                              
                           </td>
                           <td class="entry">
                              
                              <div class="p">Indicates an ASCII character with given hexadecimal code (where hh represents any
                                 two-digit hex value).
                              </div>
                              
                           </td>
                           <td class="entry">
                              
                              <div class="p">\x7E(\w){6} matches any block of text containing a &quot;word&quot; of exactly six
                                 alphanumeric characters preceded with a ~ (tilde) character. So, the words
                                 ’r;~ab12cd’, ’r;~Pa3499’ would be matched, but ’r;~oops’ would not.
                              </div>
                              
                           </td>
                        </tr>
                     </tbody>
                  </table>
               </div>
               
            </div>
         </div>
      </div>
   </div>
      </div>
      
      <div id="wh-tm-footer">
         <div id="page-tm-footer">© 2019 Trend Micro Incorporated. All rights reserved.<br /><a href="http://esupport.trendmicro.com/"><span>Search Knowledge Base</span></a></div>
      </div>
   </body></html>