Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 165

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 16:57:42 CEST 2007 -->
<TITLE>
QRegExp
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.core.QRegExp class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QRegExp";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QRegExp.CaretMode.html" title="enum in com.trolltech.qt.core"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/core/QRegExp.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QRegExp.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.core</FONT>
<BR>
Class QRegExp</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A>
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.core.QRegExp</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QRegExp</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></DL>
</PRE>

<P>
<p>The <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a> class provides pattern matching using regular expressions.</p>
<a name="regular-expression"></a><p>Regular expressions, or &quot;regexps&quot;, provide a way to find patterns within text. This is useful in many contexts, for example:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td>Validation</td><td>A regexp can be used to check whether a piece of text meets some criteria, e.g&#x2e; is an integer or contains no whitespace.</td></tr>
<tr valign="top" class="even"><td>Searching</td><td>Regexps provide a much more powerful means of searching text than simple string matching does. For example we can create a regexp which says &quot;find one of the words 'mail', 'letter' or 'correspondence' but not any of the words 'email', 'mailman' 'mailer', 'letterbox', etc.&quot;</td></tr>
<tr valign="top" class="odd"><td>Search and Replace</td><td>A regexp can be used to replace a pattern with a piece of text, for example replace all occurrences of '&amp;' with '&amp;amp;' except where the '&amp;' is already followed by 'amp;'.</td></tr>
<tr valign="top" class="even"><td>String Splitting</td><td>A regexp can be used to identify where a string should be split into its component fields, e.g&#x2e; splitting tab-delimited strings.</td></tr>
</table></p>
<p>We present a very brief introduction to regexps, a description of Qt's regexp language, some code examples, and finally the function documentation itself. <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a> is modeled on Perl's regexp language, and also fully supports Unicode. <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a> can also be used in the weaker wildcard mode that works in a similar way to command shells. It can even be feed with fixed strings (see <a href="QRegExp.html#setPatternSyntax(com.trolltech.qt.core.QRegExp.PatternSyntax)"><tt>setPatternSyntax</tt></a>). A good text on regexps is <i>Mastering Regular Expressions</i> (Third Edition) by Jeffrey E. F. Friedl, ISBN 0-596-52812-4.</p>
<ul><li><a href="#introduction">Introduction</a></li>
<li><a href="#characters-and-abbreviations-for-sets-of-characters">Characters and Abbreviations for Sets of Characters</a></li>
<li><a href="#sets-of-characters">Sets of Characters</a></li>
<li><a href="#quantifiers">Quantifiers</a></li>
<li><a href="#capturing-text">Capturing Text</a></li>
<li><a href="#assertions">Assertions</a></li>
<li><a href="#wildcard-matching">Wildcard Matching</a></li>
<li><a href="#notes-for-perl-users">Notes for Perl Users</a></li>
<li><a href="#code-examples">Code Examples</a></li>
</ul>
<a name="introduction"></a>
<h3>Introduction</h3>
<p>Regexps are built up from expressions, quantifiers, and assertions. The simplest form of expression is simply a character, e.g&#x2e; <b>x</b> or <b>5</b>. An expression can also be a set of characters. For example, <b>[ABCD]</b>, will match an <b>A</b> or a <b>B</b> or a <b>C</b> or a <b>D</b>. As a shorthand we could write this as <b>[A-D]</b>. If we want to match any of the captital letters in the English alphabet we can write <b>[A-Z]</b>. A quantifier tells the regexp engine how many occurrences of the expression we want, e.g&#x2e; <b>x{1,1}</b> means match an <b>x</b> which occurs at least once and at most once. We'll look at assertions and more complex expressions later.</p>
<p>Note that in general regexps cannot be used to check for balanced brackets or tags. For example if you want to match an opening html <tt>&lt;b&gt;</tt> and its closing <tt>&lt;b&gt;</tt>, you can only use a regexp if you know that these tags are not nested; the html fragment, <tt>&lt;b&gt;bold &lt;b&gt;bolder&lt;/b&gt;&lt;/b&gt;</tt> will not match as expected. If you know the maximum level of nesting it is possible to create a regexp that will match correctly, but for an unknown level of nesting, regexps will fail.</p>
<p>We'll start by writing a regexp to match integers in the range 0 to 99. We will require at least one digit so we will start with <b>[0-9]{1,1}</b> which means match a digit exactly once. This regexp alone will match integers in the range 0 to 9. To match one or two digits we can increase the maximum number of occurrences so the regexp becomes <b>[0-9]{1,2}</b> meaning match a digit at least once and at most twice. However, this regexp as it stands will not match correctly. This regexp will match one or two digits <i>within</i> a string. To ensure that we match against the whole string we must use the anchor assertions. We need <b>^</b> (caret) which when it is the first character in the regexp means that the regexp must match from the beginning of the string. And we also need <b>$</b> (dollar) which when it is the last character in the regexp means that the regexp must match until the end of the string. So now our regexp is <b>^[0-9]{1,2}$</b>. Note that assertions, such as <b>^</b> and <b>$</b>, do not match any characters.</p>
<p>If you've seen regexps elsewhere, they may have looked different from the ones above. This is because some sets of characters and some quantifiers are so common that they have special symbols to represent them. <b>[0-9]</b> can be replaced with the symbol <b>\d</b>. The quantifier to match exactly one occurrence, <b>{1,1}</b>, can be replaced with the expression itself. This means that <b>x{1,1}</b> is exactly the same as <b>x</b> alone. So our 0 to 99 matcher could be written <b>^\d{1,2}$</b>. Another way of writing it would be <b>^\d\d{0,1}$</b>, i.e&#x2e; from the start of the string match a digit followed by zero or one digits. In practice most people would write it <b>^\d\d?$</b>. The <b>?</b> is a shorthand for the quantifier <b>{0,1}</b>, i.e&#x2e; a minimum of no occurrences a maximum of one occurrence. This is used to make an expression optional. The regexp <b>^\d\d?$</b> means &quot;from the beginning of the string match one digit followed by zero or one digits and then the end of the string&quot;.</p>
<p>Our second example is matching the words 'mail', 'letter' or 'correspondence' but without matching 'email', 'mailman', 'mailer', 'letterbox', etc. We'll start by just matching 'mail'. In full the regexp is, <b>m{1,1}a{1,1}i{1,1}l{1,1}</b>, but since each expression itself is automatically quantified by <b>{1,1}</b> we can simply write this as <b>mail</b>; an 'm' followed by an 'a' followed by an 'i' followed by an 'l'. The symbol '|' (bar) is used for <i>alternation</i>, so our regexp now becomes <b>mail|letter|correspondence</b> which means match 'mail' <i>or</i> 'letter' <i>or</i> 'correspondence'. Whilst this regexp will find the words we want it will also find words we don't want such as 'email'. We will start by putting our regexp in parentheses, <b>(mail|letter|correspondence)</b>. Parentheses have two effects, firstly they group expressions together and secondly they identify parts of the regexp that we wish to <a href="QRegExp.html#capturing-text">capture</tt></a>. Our regexp still matches any of the three words but now they are grouped together as a unit. This is useful for building up more complex regexps. It is also useful because it allows us to examine which of the words actually matched. We need to use another assertion, this time <b>\b</b> &quot;word boundary&quot;: <b>\b(mail|letter|correspondence)\b</b>. This regexp means &quot;match a word boundary followed by the expression in parentheses followed by another word boundary&quot;. The <b>\b</b> assertion matches at a <i>position</i> in the regexp not a <i>character</i> in the regexp. A word boundary is any non-word character such as a space a newline or the beginning or end of the string.</p>
<p>For our third example we want to replace ampersands with the HTML entity '&amp;amp;'. The regexp to match is simple: <b>&amp;</b>, i.e&#x2e; match one ampersand. Unfortunately this will mess up our text if some of the ampersands have already been turned into HTML entities. So what we really want to say is replace an ampersand providing it is not followed by 'amp;'. For this we need the negative lookahead assertion and our regexp becomes: <b>&amp;(?!amp;)</b>. The negative lookahead assertion is introduced with '(?!' and finishes at the ')'. It means that the text it contains, 'amp;' in our example, must <i>not</i> follow the expression that preceeds it.</p>
<p>Regexps provide a rich language that can be used in a variety of ways. For example suppose we want to count all the occurrences of 'Eric' and 'Eirik' in a string. Two valid regexps to match these are <b>\b(Eric|Eirik)\b</b> and <b>\bEi?ri[ck]\b</b>. We need the word boundary '\b' so we don't get 'Ericsson' etc. The second regexp actually matches more than we want, 'Eric', 'Erik', 'Eiric' and 'Eirik'.</p>
<p>We will implement some the examples above in the <a href="QRegExp.html#code-examples">code examples</tt></a> section.</p>
<a name="characters-and-abbreviations-for-sets-of-characters"></a><a name="characters-and-abbreviations-for-sets-of-characters"></a>
<h3>Characters and Abbreviations for Sets of Characters</h3>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Element</th><th>Meaning</th></tr></thead>
<tr valign="top" class="odd"><td><b>c</b></td><td>Any character represents itself unless it has a special regexp meaning. Thus <b>c</b> matches the character <i>c</i>.</td></tr>
<tr valign="top" class="even"><td><b>\c</b></td><td>A character that follows a backslash matches the character itself except where mentioned below. For example if you wished to match a literal caret at the beginning of a string you would write <b>^</b>.</td></tr>
<tr valign="top" class="odd"><td><b>\a</b></td><td>This matches the ASCII bell character (BEL, 0x07).</td></tr>
<tr valign="top" class="even"><td><b>\f</b></td><td>This matches the ASCII form feed character (FF, 0x0C).</td></tr>
<tr valign="top" class="odd"><td><b>\n</b></td><td>This matches the ASCII line feed character (LF, 0x0A, Unix newline).</td></tr>
<tr valign="top" class="even"><td><b>\r</b></td><td>This matches the ASCII carriage return character (CR, 0x0D).</td></tr>
<tr valign="top" class="odd"><td><b>\t</b></td><td>This matches the ASCII horizontal tab character (HT, 0x09).</td></tr>
<tr valign="top" class="even"><td><b>\v</b></td><td>This matches the ASCII vertical tab character (VT, 0x0B).</td></tr>
<tr valign="top" class="odd"><td><b>\x<i>hhhh</i></b></td><td>This matches the Unicode character corresponding to the hexadecimal number <i>hhhh</i> (between 0x0000 and 0xFFFF).</td></tr>
<tr valign="top" class="even"><td><b>\0<i>ooo</i></b> (i.e&#x2e;, \zero <i>ooo</i>)</td><td>matches the ASCII/Latin1 character corresponding to the octal number <i>ooo</i> (between 0 and 0377).</td></tr>
<tr valign="top" class="odd"><td><b>. (dot)</b></td><td>This matches any character (including newline).</td></tr>
<tr valign="top" class="even"><td><b>\d</b></td><td>This matches a digit (QChar::isDigit()).</td></tr>
<tr valign="top" class="odd"><td><b>\D</b></td><td>This matches a non-digit.</td></tr>
<tr valign="top" class="even"><td><b>\s</b></td><td>This matches a whitespace (QChar::isSpace()).</td></tr>
<tr valign="top" class="odd"><td><b>\S</b></td><td>This matches a non-whitespace.</td></tr>
<tr valign="top" class="even"><td><b>\w</b></td><td>This matches a word character (QChar::isLetterOrNumber(), QChar::isMark(), or '_').</td></tr>
<tr valign="top" class="odd"><td><b>\W</b></td><td>This matches a non-word character.</td></tr>
<tr valign="top" class="even"><td><b>\<i>n</i></b></td><td>The <i>n</i>-th <a href="QRegExp.html#backreferences">backreference</tt></a>, e.g&#x2e; \1, \2, etc.</td></tr>
</table></p>
<p><b>Note:</b> The C++ compiler transforms backslashes in strings, so to include a <b>\</b> in a regexp, you will need to enter it twice, i.e&#x2e; <tt>\\</tt>. To match the backslash character itself, you will need four: <tt>\\\\</tt>.</p>
<a name="sets-of-characters"></a><a name="sets-of-characters"></a>
<h3>Sets of Characters</h3>
<p>Square brackets are used to match any character in the set of characters contained within the square brackets. All the character set abbreviations described above can be used within square brackets. Apart from the character set abbreviations and the following two exceptions no characters have special meanings in square brackets.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td><b>^</b></td><td>The caret negates the character set if it occurs as the first character, i.e&#x2e; immediately after the opening square bracket. For example, <b>[abc]</b> matches 'a' or 'b' or 'c', but <b>[^abc]</b> matches anything <i>except</i> 'a' or 'b' or 'c'.</td></tr>
<tr valign="top" class="even"><td><b>-</b></td><td>The dash is used to indicate a range of characters, for example <b>[W-Z]</b> matches 'W' or 'X' or 'Y' or 'Z'.</td></tr>
</table></p>
<p>Using the predefined character set abbreviations is more portable than using character ranges across platforms and languages. For example, <b>[0-9]</b> matches a digit in Western alphabets but <b>\d</b> matches a digit in <i>any</i> alphabet.</p>
<p>Note that in most regexp literature sets of characters are called &quot;character classes&quot;.</p>
<a name="quantifiers"></a><a name="quantifiers"></a>
<h3>Quantifiers</h3>
<p>By default an expression is automatically quantified by <b>{1,1}</b>, i.e&#x2e; it should occur exactly once. In the following list <b><i>E</i></b> stands for any expression. An expression is a character or an abbreviation for a set of characters or a set of characters in square brackets or any parenthesised expression.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td><b><i>E</i>?</b></td><td>Matches zero or one occurrence of <i>E</i>. This quantifier means &quot;the previous expression is optional&quot; since it will match whether or not the expression occurs in the string. It is the same as <b><i>E</i>{0,1}</b>. For example <b>dents?</b> will match 'dent' and 'dents'.</td></tr>
<tr valign="top" class="even"><td><b><i>E</i>+</b></td><td>Matches one or more occurrences of <i>E</i>. This is the same as <b><i>E</i>{1,}</b>. For example, <b>0+</b> will match '0', '00', '000', etc.</td></tr>
<tr valign="top" class="odd"><td><b><i>E</i>*</b></td><td>Matches zero or more occurrences of <i>E</i>. This is the same as <b><i>E</i>{0,}</b>. The <b>*</b> quantifier is often used by a mistake. Since it matches <i>zero</i> or more occurrences it will match no occurrences at all. For example if we want to match strings that end in whitespace and use the regexp <b>\s*$</b> we would get a match on every string. This is because we have said find zero or more whitespace followed by the end of string, so even strings that don't end in whitespace will match. The regexp we want in this case is <b>\s+$</b> to match strings that have at least one whitespace at the end.</td></tr>
<tr valign="top" class="even"><td><b><i>E</i>{n}</b></td><td>Matches exactly <i>n</i> occurrences of the expression. This is the same as repeating the expression <i>n</i> times. For example, <b>x{5}</b> is the same as <b>xxxxx</b>. It is also the same as <b><i>E</i>{n,n}</b>, e.g&#x2e; <b>x{5,5}</b>.</td></tr>
<tr valign="top" class="odd"><td><b><i>E</i>{n,}</b></td><td>Matches at least <i>n</i> occurrences of the expression.</td></tr>
<tr valign="top" class="even"><td><b><i>E</i>{,m}</b></td><td>Matches at most <i>m</i> occurrences of the expression. This is the same as <b><i>E</i>{0,m}</b>.</td></tr>
<tr valign="top" class="odd"><td><b><i>E</i>{n,m}</b></td><td>Matches at least <i>n</i> occurrences of the expression and at most <i>m</i> occurrences of the expression.</td></tr>
</table></p>
<p>If we wish to apply a quantifier to more than just the preceding character we can use parentheses to group characters together in an expression. For example, <b>tag+</b> matches a 't' followed by an 'a' followed by at least one 'g', whereas <b>(tag)+</b> matches at least one occurrence of 'tag'.</p>
<p>Note that quantifiers are &quot;greedy&quot;. They will match as much text as they can. For example, <b>0+</b> will match as many zeros as it can from the first zero it finds, e.g&#x2e; '2.<u>000</u>5'. Quantifiers can be made non-greedy, see <a href="QRegExp.html#setMinimal(boolean)"><tt>setMinimal</tt></a>.</p>
<a name="capturing-parentheses"></a><a name="backreferences"></a><a name="capturing-text"></a>
<h3>Capturing Text</h3>
<p>Parentheses allow us to group elements together so that we can quantify and capture them. For example if we have the expression <b>mail|letter|correspondence</b> that matches a string we know that <i>one</i> of the words matched but not which one. Using parentheses allows us to &quot;capture&quot; whatever is matched within their bounds, so if we used <b>(mail|letter|correspondence)</b> and matched this regexp against the string &quot;I sent you some email&quot; we can use the <a href="QRegExp.html#cap(int)"><tt>cap</tt></a> or <a href="QRegExp.html#capturedTexts()"><tt>capturedTexts</tt></a> functions to extract the matched characters, in this case 'mail'.</p>
<p>We can use captured text within the regexp itself. To refer to the captured text we use <i>backreferences</i> which are indexed from 1, the same as for <a href="QRegExp.html#cap(int)"><tt>cap</tt></a>. For example we could search for duplicate words in a string using <b>\b(\w+)\W+\1\b</b> which means match a word boundary followed by one or more word characters followed by one or more non-word characters followed by the same text as the first parenthesized expression followed by a word boundary.</p>
<p>If we want to use parentheses purely for grouping and not for capturing we can use the non-capturing syntax, e.g&#x2e; <b>(?:green|blue)</b>. Non-capturing parentheses begin '(?:' and end ')'. In this example we match either 'green' or 'blue' but we do not capture the match so we only know whether or not we matched but not which color we actually found. Using non-capturing parentheses is more efficient than using capturing parentheses since the regexp engine has to do less book-keeping.</p>
<p>Both capturing and non-capturing parentheses may be nested.</p>
<a name="greedy-quantifiers"></a><p>For historical reasons, quantifiers (e.g&#x2e; <b>*</b>) that apply to capturing parentheses are more &quot;greedy&quot; than other quantifiers. For example, <b>a*(a)*</b> will match &quot;aaa&quot; with cap(1) == &quot;aaa&quot;. This behavior is different from what other regexp engines do (notably, Perl). To obtain a more intuitive capturing behavior, specify QRegExp::RegExp2 to the <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a> constructor or call <a href="QRegExp.html#setPatternSyntax(com.trolltech.qt.core.QRegExp.PatternSyntax)"><tt>setPatternSyntax</tt></a>(QRegExp::RegExp2).</p>
<a name="cap-in-a-loop"></a><p>When the number of matches cannot be determined in advance, a common idiom is to use <a href="QRegExp.html#cap(int)"><tt>cap</tt></a> in a loop. For example:</p>
<pre>    QRegExp rx(&quot;(\\d+)&quot;);
    QString str = &quot;Offsets: 12 14 99 231 7&quot;;
    QStringList list;
    int pos = 0;

    while ((pos = rx.indexIn(str, pos)) != -1) {
        list &lt;&lt; rx.cap(1);
        pos += rx.matchedLength();
    }
<span class="comment">    // list: [&quot;12&quot;, &quot;14&quot;, &quot;99&quot;, &quot;231&quot;, &quot;7&quot;]</span></pre>
<a name="assertions"></a><a name="assertions"></a>
<h3>Assertions</h3>
<p>Assertions make some statement about the text at the point where they occur in the regexp but they do not match any characters. In the following list <b><i>E</i></b> stands for any expression.</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td><b>^</b></td><td>The caret signifies the beginning of the string. If you wish to match a literal <tt>^</tt> you must escape it by writing <tt>\\^</tt>. For example, <b>^#include</b> will only match strings which <i>begin</i> with the characters '#include'. (When the caret is the first character of a character set it has a special meaning, see <a href="QRegExp.html#sets-of-characters">Sets of Characters</tt></a>.)</td></tr>
<tr valign="top" class="even"><td><b>$</b></td><td>The dollar signifies the end of the string. For example <b>\d\s*$</b> will match strings which end with a digit optionally followed by whitespace. If you wish to match a literal <tt>$</tt> you must escape it by writing <tt>\\$</tt>.</td></tr>
<tr valign="top" class="odd"><td><b>\b</b></td><td>A word boundary. For example the regexp <b>\bOK\b</b> means match immediately after a word boundary (e.g&#x2e; start of string or whitespace) the letter 'O' then the letter 'K' immediately before another word boundary (e.g&#x2e; end of string or whitespace). But note that the assertion does not actually match any whitespace so if we write <b>(\bOK\b)</b> and we have a match it will only contain 'OK' even if the string is &quot;It's <u>OK</u> now&quot;.</td></tr>
<tr valign="top" class="even"><td><b>\B</b></td><td>A non-word boundary. This assertion is true wherever <b>\b</b> is false. For example if we searched for <b>\Bon\B</b> in &quot;Left on&quot; the match would fail (space and end of string aren't non-word boundaries), but it would match in &quot;t<u>on</u>ne&quot;.</td></tr>
<tr valign="top" class="odd"><td><b>(?=<i>E</i>)</b></td><td>Positive lookahead. This assertion is true if the expression matches at this point in the regexp. For example, <b>const(?=\s+char)</b> matches 'const' whenever it is followed by 'char', as in 'static <u>const</u> char *'. (Compare with <b>const\s+char</b>, which matches 'static <u>const char</u> *'.)</td></tr>
<tr valign="top" class="even"><td><b>(?!<i>E</i>)</b></td><td>Negative lookahead. This assertion is true if the expression does not match at this point in the regexp. For example, <b>const(?!\s+char)</b> matches 'const' <i>except</i> when it is followed by 'char'.</td></tr>
</table></p>
<a name="qregexp-wildcard-matching"></a><a name="wildcard-matching"></a>
<h3>Wildcard Matching</h3>
<p>Most command shells such as <i>bash</i> or <i>cmd.exe</i> support &quot;file globbing&quot;, the ability to identify a group of files by using wildcards. The <a href="QRegExp.html#setPatternSyntax(com.trolltech.qt.core.QRegExp.PatternSyntax)"><tt>setPatternSyntax</tt></a> function is used to switch between regexp and wildcard mode. Wildcard matching is much simpler than full regexps and has only four features:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td><b>c</b></td><td>Any character represents itself apart from those mentioned below. Thus <b>c</b> matches the character <i>c</i>.</td></tr>
<tr valign="top" class="even"><td><b>?</b></td><td>This matches any single character. It is the same as <b>.</b> in full regexps.</td></tr>
<tr valign="top" class="odd"><td><b>*</b></td><td>This matches zero or more of any characters. It is the same as <b>.*</b> in full regexps.</td></tr>
<tr valign="top" class="even"><td><b>[..&#x2e;]</b></td><td>Sets of characters can be represented in square brackets, similar to full regexps. Within the character class, like outside, backslash has no special meaning.</td></tr>
</table></p>
<p>For example if we are in wildcard mode and have strings which contain filenames we could identify HTML files with <b>*.html</b>. This will match zero or more characters followed by a dot followed by 'h', 't', 'm' and 'l'.</p>
<p>To test a string against a wildcard expression, use <a href="QRegExp.html#exactMatch(java.lang.String)"><tt>exactMatch</tt></a>. For example:</p>
<pre>    QRegExp rx(&quot;*.txt&quot;);
    rx.setPatternSyntax(QRegExp::Wildcard);
    rx.exactMatch(&quot;README.txt&quot;);        <span class="comment">// returns true</span>
    rx.exactMatch(&quot;welcome.txt.bak&quot;);   <span class="comment">// returns false</span></pre>
<a name="perl-users"></a><a name="notes-for-perl-users"></a>
<h3>Notes for Perl Users</h3>
<p>Most of the character class abbreviations supported by Perl are supported by <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a>, see <a href="QRegExp.html#characters-and-abbreviations-for-sets-of-characters">characters and abbreviations for sets of characters</tt></a>.</p>
<p>In <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a>, apart from within character classes, <tt>^</tt> always signifies the start of the string, so carets must always be escaped unless used for that purpose. In Perl the meaning of caret varies automagically depending on where it occurs so escaping it is rarely necessary. The same applies to <tt>$</tt> which in <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a> always signifies the end of the string.</p>
<p><a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a>'s quantifiers are the same as Perl's greedy quantifiers (but see the <a href="QRegExp.html#greedy-quantifiers">note above</tt></a>). Non-greedy matching cannot be applied to individual quantifiers, but can be applied to all the quantifiers in the pattern. For example, to match the Perl regexp <b>ro+?m</b> requires:</p>
<pre>    QRegExp
       rx(&quot;ro+m&quot;); rx.setMinimal(true);</pre>
<p>The equivalent of Perl's <tt>/i</tt> option is <a href="QRegExp.html#setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)"><tt>setCaseSensitivity</tt></a>(Qt::CaseInsensitive).</p>
<p>Perl's <tt>/g</tt> option can be emulated using a <a href="QRegExp.html#cap-in-a-loop">loop</tt></a>.</p>
<p>In <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a> <b>.</b> matches any character, therefore all <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a> regexps have the equivalent of Perl's <tt>/s</tt> option. <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a> does not have an equivalent to Perl's <tt>/m</tt> option, but this can be emulated in various ways for example by splitting the input into lines or by looping with a regexp that searches for newlines.</p>
<p>Because <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a> is string oriented, there are no \A, \Z, or \z assertions. The \G assertion is not supported but can be emulated in a loop.</p>
<p>Perl's $&amp; is cap(0) or <a href="QRegExp.html#capturedTexts()"><tt>capturedTexts</tt></a>[0]. There are no <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a> equivalents for $`, $' or $+. Perl's capturing variables, $1, $2, ..&#x2e; correspond to cap(1) or <a href="QRegExp.html#capturedTexts()"><tt>capturedTexts</tt></a>[1], cap(2) or <a href="QRegExp.html#capturedTexts()"><tt>capturedTexts</tt></a>[2], etc.</p>
<p>To substitute a pattern use QString::replace().</p>
<p>Perl's extended <tt>/x</tt> syntax is not supported, nor are directives, e.g&#x2e; (?i), or regexp comments, e.g&#x2e; (?#comment). On the other hand, C++'s rules for literal strings can be used to achieve the same:</p>
<pre>           QRegExp mark(&quot;\\b&quot;      <span class="comment">// word boundary</span>
                         &quot;[Mm]ark&quot; <span class="comment">// the word we want to match</span>
                       );</pre>
<p>Both zero-width positive and zero-width negative lookahead assertions (?=pattern) and (?!pattern) are supported with the same syntax as Perl. Perl's lookbehind assertions, &quot;independent&quot; subexpressions and conditional expressions are not supported.</p>
<p>Non-capturing parentheses are also supported, with the same (?:pattern) syntax.</p>
<p>See QString::split() and QStringList::join() for equivalents to Perl's split and join functions.</p>
<p>Note: because C++ transforms \'s they must be written <i>twice</i> in code, e.g&#x2e; <b>\b</b> must be written <b>\\b</b>.</p>
<a name="code-examples"></a><a name="code-examples"></a>
<h3>Code Examples</h3>
<pre>           QRegExp rx(&quot;^\\d\\d?$&quot;);    <span class="comment">// match integers 0 to 99</span>
           rx.indexIn(&quot;123&quot;);          <span class="comment">// returns -1 (no match)</span>
           rx.indexIn(&quot;-6&quot;);           <span class="comment">// returns -1 (no match)</span>
           rx.indexIn(&quot;6&quot;);            <span class="comment">// returns 0 (matched as position 0)</span></pre>
<p>The third string matches '<u>6</u>'. This is a simple validation regexp for integers in the range 0 to 99.</p>
<pre>           QRegExp rx(&quot;^\\S+$&quot;);       <span class="comment">// match strings without whitespace</span>
           rx.indexIn(&quot;Hello world&quot;);  <span class="comment">// returns -1 (no match)</span>
           rx.indexIn(&quot;This_is-OK&quot;);   <span class="comment">// returns 0 (matched at position 0)</span></pre>
<p>The second string matches '<u>This_is-OK</u>'. We've used the character set abbreviation '\S' (non-whitespace) and the anchors to match strings which contain no whitespace.</p>
<p>In the following example we match strings containing 'mail' or 'letter' or 'correspondence' but only match whole words i.e&#x2e; not 'email'</p>
<pre>           QRegExp rx(&quot;\\b(mail|letter|correspondence)\\b&quot;);
           rx.indexIn(&quot;I sent you an email&quot;);     <span class="comment">// returns -1 (no match)</span>
           rx.indexIn(&quot;Please write the letter&quot;); <span class="comment">// returns 17</span></pre>
<p>The second string matches &quot;Please write the <u>letter</u>&quot;. The word 'letter' is also captured (because of the parentheses). We can see what text we've captured like this:</p>
<pre>           QString captured = rx.cap(1); <span class="comment">// captured == &quot;letter&quot;</span></pre>
<p>This will capture the text from the first set of capturing parentheses (counting capturing left parentheses from left to right). The parentheses are counted from 1 since cap(0) is the whole matched regexp (equivalent to '&amp;' in most regexp engines).</p>
<pre>           QRegExp rx(&quot;&amp;(?!amp;)&quot;);      <span class="comment">// match ampersands but not &amp;amp;</span>
           QString line1 = &quot;This &amp; that&quot;;
           line1.replace(rx, &quot;&amp;amp;&quot;);
           <span class="comment">// line1 == &quot;This &amp;amp; that&quot;</span>
           QString line2 = &quot;His &amp;amp; hers &amp; theirs&quot;;
           line2.replace(rx, &quot;&amp;amp;&quot;);
           <span class="comment">// line2 == &quot;His &amp;amp; hers &amp;amp; theirs&quot;</span></pre>
<p>Here we've passed the <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a> to <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a>'s <a href="%2E%2E/qtjambi-typesystem.html#replace"><tt>replace</tt></a> function to replace the matched text with new text.</p>
<pre>           QString str = &quot;One Eric another Eirik, and an Ericsson. &quot;
                         &quot;How many Eiriks, Eric?&quot;;
           QRegExp rx(&quot;\\b(Eric|Eirik)\\b&quot;); <span class="comment">// match Eric or Eirik</span>
           int pos = 0;    <span class="comment">// where we are in the string</span>
           int count = 0;  <span class="comment">// how many Eric and Eirik's we've counted</span>
           while (pos &gt;= 0) {
               pos = rx.indexIn(str, pos);
               if (pos &gt;= 0) {
                   ++pos;      <span class="comment">// move along in str</span>
                   ++count;    <span class="comment">// count our Eric or Eirik</span>
               }
           }</pre>
<p>We've used the <a href="QRegExp.html#indexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>indexIn</tt></a> function to repeatedly match the regexp in the string. Note that instead of moving forward by one character at a time <tt>pos++</tt> we could have written <tt>pos += rx.matchedLength()</tt> to skip over the already matched string. The count will equal 3, matching 'One <u>Eric</u> another <u>Eirik</u>, and an Ericsson. How many Eiriks, <u>Eric</u>?'; it doesn't match 'Ericsson' or 'Eiriks' because they are not bounded by non-word boundaries.</p>
<p>One common use of regexps is to split lines of delimited data into their component fields.</p>
<pre>           str = &quot;Trolltech ASA\twww.trolltech.com\tNorway&quot;;
           QString company, web, country;
           rx.setPattern(&quot;^([^\t]+)\t([^\t]+)\t([^\t]+)$&quot;);
           if (rx.indexIn(str) != -1) {
               company = rx.cap(1);
               web = rx.cap(2);
               country = rx.cap(3);
           }</pre>
<p>In this example our input lines have the format company name, web address and country. Unfortunately the regexp is rather long and not very versatile -- the code will break if we add any more fields. A simpler and better solution is to look for the separator, '\t' in this case, and take the surrounding text. The QString::split() function can take a separator string or regexp as an argument and split a string accordingly.</p>
<pre>           QStringList field = str.split(&quot;\t&quot;);</pre>
<p>Here field[0] is the company, field[1] the web address and so on.</p>
<p>To imitate the matching of a shell we can use wildcard mode.</p>
<pre>           QRegExp rx(&quot;*.html&quot;);
           rx.setPatternSyntax(QRegExp::Wildcard);
           rx.exactMatch(&quot;index.html&quot;);                <span class="comment">// returns true</span>
           rx.exactMatch(&quot;default.htm&quot;);               <span class="comment">// returns false</span>
           rx.exactMatch(&quot;readme.txt&quot;);                <span class="comment">// returns false</span></pre>
<p>Wildcard matching can be convenient because of its simplicity, but any wildcard regexp can be defined using full regexps, e.g&#x2e; <b>.*.html$</b>. Notice that we can't match both <tt>.html</tt> and <tt>.htm</tt> files with a wildcard unless we use <b>*.htm*</b> which will also match 'test.html.bak'. A full regexp gives us the precision we need, <b>.*\.html?$</b>.</p>
<p><a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a> can match case insensitively using <a href="QRegExp.html#setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)"><tt>setCaseSensitivity</tt></a>, and can use non-greedy matching, see <a href="QRegExp.html#setMinimal(boolean)"><tt>setMinimal</tt></a>. By default <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a> uses full regexps but this can be changed with setWildcard(). Searching can be forward with <a href="QRegExp.html#indexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>indexIn</tt></a> or backward with <a href="QRegExp.html#lastIndexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>lastIndexIn</tt></a>. Captured text can be accessed using <a href="QRegExp.html#capturedTexts()"><tt>capturedTexts</tt></a> which returns a string list of all captured strings, or using <a href="QRegExp.html#cap(int)"><tt>cap</tt></a> which returns the captured string for the given index. The <a href="QRegExp.html#pos(int)"><tt>pos</tt></a> function takes a match index and returns the position in the string where the match was made (or -1 if there was no match).</p>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a>, 
<a href="%2E%2E/porting4.html#qstringlist"><tt>QStringList</tt></a>, 
<a href="%2E%2E/gui/QRegExpValidator.html"><tt>QRegExpValidator</tt></a>, 
<a href="%2E%2E/gui/QSortFilterProxyModel.html"><tt>QSortFilterProxyModel</tt></a>, 
<CODE>Expression Example</tt></CODE></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.CaretMode.html" title="enum in com.trolltech.qt.core">QRegExp.CaretMode</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The <a href="QRegExp.html#CaretMode-enum"><tt>CaretMode</tt></a> enum defines the different meanings of the caret (<b>^</b>) in a regular expression.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.PatternSyntax.html" title="enum in com.trolltech.qt.core">QRegExp.PatternSyntax</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The syntax used to interpret the meaning of the pattern.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;

<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#QRegExp()">QRegExp</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an empty regexp.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#QRegExp(com.trolltech.qt.core.QRegExp)">QRegExp</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;rx)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a regular expression as a copy of <tt>rx</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#QRegExp(java.lang.String)">QRegExp</A></B>(java.lang.String&nbsp;pattern)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a>(<tt>pattern</tt>, Qt::CaseSensitive, RegExp).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#QRegExp(java.lang.String, com.trolltech.qt.core.Qt.CaseSensitivity)">QRegExp</A></B>(java.lang.String&nbsp;pattern,
        <A HREF="../../../../com/trolltech/qt/core/Qt.CaseSensitivity.html" title="enum in com.trolltech.qt.core">Qt.CaseSensitivity</A>&nbsp;cs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a>(<tt>pattern</tt>, <tt>cs</tt>, RegExp).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#QRegExp(java.lang.String, com.trolltech.qt.core.Qt.CaseSensitivity, com.trolltech.qt.core.QRegExp.PatternSyntax)">QRegExp</A></B>(java.lang.String&nbsp;pattern,
        <A HREF="../../../../com/trolltech/qt/core/Qt.CaseSensitivity.html" title="enum in com.trolltech.qt.core">Qt.CaseSensitivity</A>&nbsp;cs,
        <A HREF="../../../../com/trolltech/qt/core/QRegExp.PatternSyntax.html" title="enum in com.trolltech.qt.core">QRegExp.PatternSyntax</A>&nbsp;syntax)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a regular expression object for the given <tt>pattern</tt> string.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#cap()">cap</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QRegExp.html#cap(int)">cap</tt></a>(0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#cap(int)">cap</A></B>(int&nbsp;nth)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text captured by the <tt>nth</tt> subexpression.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.List&lt;java.lang.String&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#capturedTexts()">capturedTexts</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list of the captured text strings.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/Qt.CaseSensitivity.html" title="enum in com.trolltech.qt.core">Qt.CaseSensitivity</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#caseSensitivity()">caseSensitivity</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns Qt::CaseSensitive if the regexp is matched case sensitively; otherwise returns Qt::CaseInsensitive.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;other)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#errorString()">errorString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a text string that explains why a regexp pattern is invalid the case being; otherwise returns &quot;no error occurred&quot;.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#escape(java.lang.String)">escape</A></B>(java.lang.String&nbsp;str)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the string <tt>str</tt> with every regexp special character escaped with a backslash.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#exactMatch(java.lang.String)">exactMatch</A></B>(java.lang.String&nbsp;str)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if <tt>str</tt> is matched exactly by this regular expression; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QRegExp instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#indexIn(java.lang.String)">indexIn</A></B>(java.lang.String&nbsp;str)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QRegExp.html#indexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>indexIn</tt></a>(<tt>str</tt>, 0, CaretAtZero).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#indexIn(java.lang.String, int)">indexIn</A></B>(java.lang.String&nbsp;str,
        int&nbsp;offset)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QRegExp.html#indexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>indexIn</tt></a>(<tt>str</tt>, <tt>offset</tt>, CaretAtZero).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#indexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)">indexIn</A></B>(java.lang.String&nbsp;str,
        int&nbsp;offset,
        <A HREF="../../../../com/trolltech/qt/core/QRegExp.CaretMode.html" title="enum in com.trolltech.qt.core">QRegExp.CaretMode</A>&nbsp;caretMode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempts to find a match in <tt>str</tt> from position <tt>offset</tt> (0 by default).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#isEmpty()">isEmpty</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the pattern string is empty; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#isMinimal()">isMinimal</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if minimal (non-greedy) matching is enabled; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#isValid()">isValid</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the regular expression is valid; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#lastIndexIn(java.lang.String)">lastIndexIn</A></B>(java.lang.String&nbsp;str)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QRegExp.html#lastIndexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>lastIndexIn</tt></a>(<tt>str</tt>, -1, CaretAtZero).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#lastIndexIn(java.lang.String, int)">lastIndexIn</A></B>(java.lang.String&nbsp;str,
            int&nbsp;offset)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QRegExp.html#lastIndexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>lastIndexIn</tt></a>(<tt>str</tt>, <tt>offset</tt>, CaretAtZero).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#lastIndexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)">lastIndexIn</A></B>(java.lang.String&nbsp;str,
            int&nbsp;offset,
            <A HREF="../../../../com/trolltech/qt/core/QRegExp.CaretMode.html" title="enum in com.trolltech.qt.core">QRegExp.CaretMode</A>&nbsp;caretMode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempts to find a match backwards in <tt>str</tt> from position <tt>offset</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#matchedLength()">matchedLength</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the length of the last matched string, or -1 if there was no match.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#nativePointerArray(com.trolltech.qt.core.QRegExp[])">nativePointerArray</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>[]&nbsp;array)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns a QNativePointer that is pointing to the specified QRegExp array.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#numCaptures()">numCaptures</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of captures contained in the regular expression.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#pattern()">pattern</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the pattern string of the regular expression.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QRegExp.PatternSyntax.html" title="enum in com.trolltech.qt.core">QRegExp.PatternSyntax</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#patternSyntax()">patternSyntax</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the syntax used by the regular expression.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#pos()">pos</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QRegExp.html#pos(int)">pos</tt></a>(0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#pos(int)">pos</A></B>(int&nbsp;nth)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the position of the <tt>nth</tt> captured text in the searched string.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#readFrom(com.trolltech.qt.core.QDataStream)">readFrom</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;in)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a QRegExp from in.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)">setCaseSensitivity</A></B>(<A HREF="../../../../com/trolltech/qt/core/Qt.CaseSensitivity.html" title="enum in com.trolltech.qt.core">Qt.CaseSensitivity</A>&nbsp;cs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets case sensitive matching to <tt>cs</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#setMinimal(boolean)">setMinimal</A></B>(boolean&nbsp;minimal)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables or disables minimal matching.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#setPattern(java.lang.String)">setPattern</A></B>(java.lang.String&nbsp;pattern)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the pattern string to <tt>pattern</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#setPatternSyntax(com.trolltech.qt.core.QRegExp.PatternSyntax)">setPatternSyntax</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.PatternSyntax.html" title="enum in com.trolltech.qt.core">QRegExp.PatternSyntax</A>&nbsp;syntax)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the syntax mode for the regular expression.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/core/QRegExp.html#writeTo(com.trolltech.qt.core.QDataStream)">writeTo</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;out)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes thisQRegExp to out.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#thread()">thread</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="QRegExp(java.lang.String, com.trolltech.qt.core.Qt.CaseSensitivity)"><!-- --></A><H3>
QRegExp</H3>
<PRE>
public <B>QRegExp</B>(java.lang.String&nbsp;pattern,
               <A HREF="../../../../com/trolltech/qt/core/Qt.CaseSensitivity.html" title="enum in com.trolltech.qt.core">Qt.CaseSensitivity</A>&nbsp;cs)</PRE>
<DL>
<DD><p>Equivalent to <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a>(<tt>pattern</tt>, <tt>cs</tt>, RegExp).
<P>
</DL>
<HR>

<A NAME="QRegExp(java.lang.String)"><!-- --></A><H3>
QRegExp</H3>
<PRE>
public <B>QRegExp</B>(java.lang.String&nbsp;pattern)</PRE>
<DL>
<DD><p>Equivalent to <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a>(<tt>pattern</tt>, Qt::CaseSensitive, RegExp).
<P>
</DL>
<HR>

<A NAME="QRegExp(java.lang.String, com.trolltech.qt.core.Qt.CaseSensitivity, com.trolltech.qt.core.QRegExp.PatternSyntax)"><!-- --></A><H3>
QRegExp</H3>
<PRE>
public <B>QRegExp</B>(java.lang.String&nbsp;pattern,
               <A HREF="../../../../com/trolltech/qt/core/Qt.CaseSensitivity.html" title="enum in com.trolltech.qt.core">Qt.CaseSensitivity</A>&nbsp;cs,
               <A HREF="../../../../com/trolltech/qt/core/QRegExp.PatternSyntax.html" title="enum in com.trolltech.qt.core">QRegExp.PatternSyntax</A>&nbsp;syntax)</PRE>
<DL>
<DD><p>Constructs a regular expression object for the given <tt>pattern</tt> string. The pattern must be given using wildcard notation if <tt>syntax</tt> is <a href="QRegExp.html#PatternSyntax-enum">Wildcard</tt></a>; the default is <a href="QRegExp.html#PatternSyntax-enum"><tt>RegExp</tt></a>. The pattern is case sensitive, unless <tt>cs</tt> is Qt::CaseInsensitive. Matching is greedy (maximal), but can be changed by calling <a href="QRegExp.html#setMinimal(boolean)"><tt>setMinimal</tt></a>.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#setPattern(java.lang.String)"><tt>setPattern</tt></a>, 
<a href="QRegExp.html#setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)"><tt>setCaseSensitivity</tt></a>, 
<a href="QRegExp.html#setPatternSyntax(com.trolltech.qt.core.QRegExp.PatternSyntax)"><tt>setPatternSyntax</tt></a></DL>
</DL>
<HR>

<A NAME="QRegExp(com.trolltech.qt.core.QRegExp)"><!-- --></A><H3>
QRegExp</H3>
<PRE>
public <B>QRegExp</B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>&nbsp;rx)</PRE>
<DL>
<DD><p>Constructs a regular expression as a copy of <tt>rx</tt>.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><tt>operator=</tt></DL>
</DL>
<HR>

<A NAME="QRegExp()"><!-- --></A><H3>
QRegExp</H3>
<PRE>
public <B>QRegExp</B>()</PRE>
<DL>
<DD><p>Constructs an empty regexp.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#isValid()"><tt>isValid</tt></a>, 
<a href="QRegExp.html#errorString()"><tt>errorString</tt></a></DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="cap()"><!-- --></A><H3>
cap</H3>
<PRE>
public final java.lang.String <B>cap</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QRegExp.html#cap(int)">cap</tt></a>(0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="cap(int)"><!-- --></A><H3>
cap</H3>
<PRE>
public final java.lang.String <B>cap</B>(int&nbsp;nth)</PRE>
<DL>
<DD><p>Returns the text captured by the <tt>nth</tt> subexpression. The entire match has index 0 and the parenthesized subexpressions have indexes starting from 1 (excluding non-capturing parentheses).</p>
<pre>    QRegExp rxlen(&quot;(\\d+)(?:\\s*)(cm|inch)&quot;);
    int pos = rxlen.indexIn(&quot;Length: 189cm&quot;);
    if (pos &gt; -1) {
        QString value = rxlen.cap(1); <span class="comment">// &quot;189&quot;</span>
        QString unit = rxlen.cap(2);  <span class="comment">// &quot;cm&quot;</span>
        <span class="comment">// ...</span>
    }</pre>
<p>The order of elements matched by <a href="QRegExp.html#cap(int)"><tt>cap</tt></a> is as follows. The first element, cap(0), is the entire matching string. Each subsequent element corresponds to the next capturing open left parentheses. Thus cap(1) is the text of the first capturing parentheses, cap(2) is the text of the second, and so on.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#capturedTexts()"><tt>capturedTexts</tt></a>, 
<a href="QRegExp.html#pos(int)"><tt>pos</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="capturedTexts()"><!-- --></A><H3>
capturedTexts</H3>
<PRE>
public final java.util.List&lt;java.lang.String&gt; <B>capturedTexts</B>()</PRE>
<DL>
<DD><p>Returns a list of the captured text strings.</p>
<p>The first string in the list is the entire matched string. Each subsequent list element contains a string that matched a (capturing) subexpression of the regexp.</p>
<p>For example:</p>
<pre>    QRegExp rx(&quot;(\\d+)(\\s*)(cm|inch(es)?)&quot;);
    int pos = rx.indexIn(&quot;Length: 36 inches&quot;);
    QStringList list = rx.capturedTexts();
<span class="comment">    // list is now (&quot;36 inches&quot;, &quot;36&quot;, &quot; &quot;, &quot;inches&quot;, &quot;es&quot;)</span></pre>
<p>The above example also captures elements that may be present but which we have no interest in. This problem can be solved by using non-capturing parentheses:</p>
<pre>    QRegExp rx(&quot;(\\d+)(?:\\s*)(cm|inch(?:es)?)&quot;);
    int pos = rx.indexIn(&quot;Length: 36 inches&quot;);
    QStringList list = rx.capturedTexts();
<span class="comment">    // list is now (&quot;36 inches&quot;, &quot;36&quot;, &quot;inches&quot;)</span></pre>
<p>Note that if you want to iterate over the list, you should iterate over a copy, e.g&#x2e;</p>
<pre>    QStringList list = rx.capturedTexts();
    QStringList::iterator it = list.begin();
    while (it != list.end()) {
        myProcessing(*it);
        ++it;
    }</pre>
<p>Some regexps can match an indeterminate number of times. For example if the input string is &quot;Offsets: 12 14 99 231 7&quot; and the regexp, <tt>rx</tt>, is <b>(\d+)+</b>, we would hope to get a list of all the numbers matched. However, after calling <tt>rx.indexIn(str)</tt>, <a href="QRegExp.html#capturedTexts()"><tt>capturedTexts</tt></a> will return the list (&quot;12&quot;, &quot;12&quot;), i.e&#x2e; the entire match was &quot;12&quot; and the first subexpression matched was &quot;12&quot;. The correct approach is to use <a href="QRegExp.html#cap(int)"><tt>cap</tt></a> in a loop</tt>.</p>
<p>The order of elements in the string list is as follows. The first element is the entire matching string. Each subsequent element corresponds to the next capturing open left parentheses. Thus <a href="QRegExp.html#capturedTexts()"><tt>capturedTexts</tt></a>[1] is the text of the first capturing parentheses, <a href="QRegExp.html#capturedTexts()"><tt>capturedTexts</tt></a>[2] is the text of the second and so on (corresponding to $1, $2, etc., in some other regexp languages).</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#cap(int)"><tt>cap</tt></a>, 
<a href="QRegExp.html#pos(int)"><tt>pos</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="caseSensitivity()"><!-- --></A><H3>
caseSensitivity</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/Qt.CaseSensitivity.html" title="enum in com.trolltech.qt.core">Qt.CaseSensitivity</A> <B>caseSensitivity</B>()</PRE>
<DL>
<DD><p>Returns Qt::CaseSensitive if the regexp is matched case sensitively; otherwise returns Qt::CaseInsensitive.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)"><tt>setCaseSensitivity</tt></a>, 
<a href="QRegExp.html#patternSyntax()"><tt>patternSyntax</tt></a>, 
<a href="QRegExp.html#pattern()"><tt>pattern</tt></a>, 
<a href="QRegExp.html#isMinimal()"><tt>isMinimal</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="errorString()"><!-- --></A><H3>
errorString</H3>
<PRE>
public final java.lang.String <B>errorString</B>()</PRE>
<DL>
<DD><p>Returns a text string that explains why a regexp pattern is invalid the case being; otherwise returns &quot;no error occurred&quot;.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#isValid()"><tt>isValid</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="exactMatch(java.lang.String)"><!-- --></A><H3>
exactMatch</H3>
<PRE>
public final boolean <B>exactMatch</B>(java.lang.String&nbsp;str)</PRE>
<DL>
<DD><p>Returns true if <tt>str</tt> is matched exactly by this regular expression; otherwise returns false. You can determine how much of the string was matched by calling <a href="QRegExp.html#matchedLength()"><tt>matchedLength</tt></a>.</p>
<p>For a given regexp string R, <a href="QRegExp.html#exactMatch(java.lang.String)"><tt>exactMatch</tt></a>(&quot;R&quot;) is the equivalent of <a href="QRegExp.html#indexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>indexIn</tt></a>(&quot;^R$&quot;) since <a href="QRegExp.html#exactMatch(java.lang.String)"><tt>exactMatch</tt></a> effectively encloses the regexp in the start of string and end of string anchors, except that it sets <a href="QRegExp.html#matchedLength()"><tt>matchedLength</tt></a> differently.</p>
<p>For example, if the regular expression is <b>blue</b>, then <a href="QRegExp.html#exactMatch(java.lang.String)"><tt>exactMatch</tt></a> returns true only for input <tt>blue</tt>. For inputs <tt>bluebell</tt>, <tt>blutak</tt> and <tt>lightblue</tt>, <a href="QRegExp.html#exactMatch(java.lang.String)"><tt>exactMatch</tt></a> returns false and <a href="QRegExp.html#matchedLength()"><tt>matchedLength</tt></a> will return 4, 3 and 0 respectively.</p>
<p>Although const, this function sets <a href="QRegExp.html#matchedLength()"><tt>matchedLength</tt></a>, <a href="QRegExp.html#capturedTexts()"><tt>capturedTexts</tt></a>, and <a href="QRegExp.html#pos(int)"><tt>pos</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#indexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>indexIn</tt></a>, 
<a href="QRegExp.html#lastIndexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>lastIndexIn</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="indexIn(java.lang.String, int)"><!-- --></A><H3>
indexIn</H3>
<PRE>
public final int <B>indexIn</B>(java.lang.String&nbsp;str,
                         int&nbsp;offset)</PRE>
<DL>
<DD><p>Equivalent to <a href="QRegExp.html#indexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>indexIn</tt></a>(<tt>str</tt>, <tt>offset</tt>, CaretAtZero).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="indexIn(java.lang.String)"><!-- --></A><H3>
indexIn</H3>
<PRE>
public final int <B>indexIn</B>(java.lang.String&nbsp;str)</PRE>
<DL>
<DD><p>Equivalent to <a href="QRegExp.html#indexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>indexIn</tt></a>(<tt>str</tt>, 0, CaretAtZero).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="indexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><!-- --></A><H3>
indexIn</H3>
<PRE>
public final int <B>indexIn</B>(java.lang.String&nbsp;str,
                         int&nbsp;offset,
                         <A HREF="../../../../com/trolltech/qt/core/QRegExp.CaretMode.html" title="enum in com.trolltech.qt.core">QRegExp.CaretMode</A>&nbsp;caretMode)</PRE>
<DL>
<DD><p>Attempts to find a match in <tt>str</tt> from position <tt>offset</tt> (0 by default). If <tt>offset</tt> is -1, the search starts at the last character; if -2, at the next to last character; etc.</p>
<p>Returns the position of the first match, or -1 if there was no match.</p>
<p>The <tt>caretMode</tt> parameter can be used to instruct whether <b>^</b> should match at index 0 or at <tt>offset</tt>.</p>
<p>You might prefer to use QString::indexOf(), QString::contains(), or even QStringList::filter(). To replace matches use QString::replace().</p>
<p>Example:</p>
<pre>    QString str = &quot;offsets: 1.23 .50 71.00 6.00&quot;;
    QRegExp rx(&quot;\\d\*\.\\d+&quot;);    <span class="comment">// primitive floating point matching</span>
    int count = 0;
    int pos = 0;
    while ((pos = rx.indexIn(str, pos)) != -1) {
        ++count;
        pos += rx.matchedLength();
    }
<span class="comment">    // pos will be 9, 14, 18 and finally 24; count will end up as 4</span></pre>
<p>Although const, this function sets <a href="QRegExp.html#matchedLength()"><tt>matchedLength</tt></a>, <a href="QRegExp.html#capturedTexts()"><tt>capturedTexts</tt></a> and <a href="QRegExp.html#pos(int)"><tt>pos</tt></a>.</p>
<p>If the <a href="QRegExp.html#QRegExp()"><tt>QRegExp</tt></a> is a wildcard expression (see <a href="QRegExp.html#setPatternSyntax(com.trolltech.qt.core.QRegExp.PatternSyntax)"><tt>setPatternSyntax</tt></a>) and want to test a string against the whole wildcard expression, use <a href="QRegExp.html#exactMatch(java.lang.String)"><tt>exactMatch</tt></a> instead of this function.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#lastIndexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>lastIndexIn</tt></a>, 
<a href="QRegExp.html#exactMatch(java.lang.String)"><tt>exactMatch</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="isEmpty()"><!-- --></A><H3>
isEmpty</H3>
<PRE>
public final boolean <B>isEmpty</B>()</PRE>
<DL>
<DD><p>Returns true if the pattern string is empty; otherwise returns false.</p>
<p>If you call <a href="QRegExp.html#exactMatch(java.lang.String)"><tt>exactMatch</tt></a> with an empty pattern on an empty string it will return true; otherwise it returns false since it operates over the whole string. If you call <a href="QRegExp.html#indexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>indexIn</tt></a> with an empty pattern on <i>any</i> string it will return the start offset (0 by default) because the empty pattern matches the 'emptiness' at the start of the string. In this case the length of the match returned by <a href="QRegExp.html#matchedLength()"><tt>matchedLength</tt></a> will be 0.</p>
<p>See QString::isEmpty().</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="isMinimal()"><!-- --></A><H3>
isMinimal</H3>
<PRE>
public final boolean <B>isMinimal</B>()</PRE>
<DL>
<DD><p>Returns true if minimal (non-greedy) matching is enabled; otherwise returns false.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#caseSensitivity()"><tt>caseSensitivity</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="isValid()"><!-- --></A><H3>
isValid</H3>
<PRE>
public final boolean <B>isValid</B>()</PRE>
<DL>
<DD><p>Returns true if the regular expression is valid; otherwise returns false. An invalid regular expression never matches.</p>
<p>The pattern <b>[a-z</b> is an example of an invalid pattern, since it lacks a closing square bracket.</p>
<p>Note that the validity of a regexp may also depend on the setting of the wildcard flag, for example <b>*.html</b> is a valid wildcard regexp but an invalid full regexp.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#errorString()"><tt>errorString</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="lastIndexIn(java.lang.String, int)"><!-- --></A><H3>
lastIndexIn</H3>
<PRE>
public final int <B>lastIndexIn</B>(java.lang.String&nbsp;str,
                             int&nbsp;offset)</PRE>
<DL>
<DD><p>Equivalent to <a href="QRegExp.html#lastIndexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>lastIndexIn</tt></a>(<tt>str</tt>, <tt>offset</tt>, CaretAtZero).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="lastIndexIn(java.lang.String)"><!-- --></A><H3>
lastIndexIn</H3>
<PRE>
public final int <B>lastIndexIn</B>(java.lang.String&nbsp;str)</PRE>
<DL>
<DD><p>Equivalent to <a href="QRegExp.html#lastIndexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>lastIndexIn</tt></a>(<tt>str</tt>, -1, CaretAtZero).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="lastIndexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><!-- --></A><H3>
lastIndexIn</H3>
<PRE>
public final int <B>lastIndexIn</B>(java.lang.String&nbsp;str,
                             int&nbsp;offset,
                             <A HREF="../../../../com/trolltech/qt/core/QRegExp.CaretMode.html" title="enum in com.trolltech.qt.core">QRegExp.CaretMode</A>&nbsp;caretMode)</PRE>
<DL>
<DD><p>Attempts to find a match backwards in <tt>str</tt> from position <tt>offset</tt>. If <tt>offset</tt> is -1 (the default), the search starts at the last character; if -2, at the next to last character; etc.</p>
<p>Returns the position of the first match, or -1 if there was no match.</p>
<p>The <tt>caretMode</tt> parameter can be used to instruct whether <b>^</b> should match at index 0 or at <tt>offset</tt>.</p>
<p>Although const, this function sets <a href="QRegExp.html#matchedLength()"><tt>matchedLength</tt></a>, <a href="QRegExp.html#capturedTexts()"><tt>capturedTexts</tt></a> and <a href="QRegExp.html#pos(int)"><tt>pos</tt></a>.</p>
<p><b>Warning:</b> Searching backwards is much slower than searching forwards.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#indexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>indexIn</tt></a>, 
<a href="QRegExp.html#exactMatch(java.lang.String)"><tt>exactMatch</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="matchedLength()"><!-- --></A><H3>
matchedLength</H3>
<PRE>
public final int <B>matchedLength</B>()</PRE>
<DL>
<DD><p>Returns the length of the last matched string, or -1 if there was no match.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#exactMatch(java.lang.String)"><tt>exactMatch</tt></a>, 
<a href="QRegExp.html#indexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>indexIn</tt></a>, 
<a href="QRegExp.html#lastIndexIn(java.lang.String, int, com.trolltech.qt.core.QRegExp.CaretMode)"><tt>lastIndexIn</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="numCaptures()"><!-- --></A><H3>
numCaptures</H3>
<PRE>
public final int <B>numCaptures</B>()</PRE>
<DL>
<DD><p>Returns the number of captures contained in the regular expression.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="writeTo(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3>
writeTo</H3>
<PRE>
public final void <B>writeTo</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;out)</PRE>
<DL>
<DD>Writes thisQRegExp to out.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readFrom(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3>
readFrom</H3>
<PRE>
public final void <B>readFrom</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;in)</PRE>
<DL>
<DD>Reads a QRegExp from in.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="pattern()"><!-- --></A><H3>
pattern</H3>
<PRE>
public final java.lang.String <B>pattern</B>()</PRE>
<DL>
<DD><p>Returns the pattern string of the regular expression. The pattern has either regular expression syntax or wildcard syntax, depending on <a href="QRegExp.html#patternSyntax()"><tt>patternSyntax</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#setPattern(java.lang.String)"><tt>setPattern</tt></a>, 
<a href="QRegExp.html#patternSyntax()"><tt>patternSyntax</tt></a>, 
<a href="QRegExp.html#caseSensitivity()"><tt>caseSensitivity</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="patternSyntax()"><!-- --></A><H3>
patternSyntax</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QRegExp.PatternSyntax.html" title="enum in com.trolltech.qt.core">QRegExp.PatternSyntax</A> <B>patternSyntax</B>()</PRE>
<DL>
<DD><p>Returns the syntax used by the regular expression. The default is QRegExp::RegExp.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#setPatternSyntax(com.trolltech.qt.core.QRegExp.PatternSyntax)"><tt>setPatternSyntax</tt></a>, 
<a href="QRegExp.html#pattern()"><tt>pattern</tt></a>, 
<a href="QRegExp.html#caseSensitivity()"><tt>caseSensitivity</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="pos()"><!-- --></A><H3>
pos</H3>
<PRE>
public final int <B>pos</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QRegExp.html#pos(int)">pos</tt></a>(0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="pos(int)"><!-- --></A><H3>
pos</H3>
<PRE>
public final int <B>pos</B>(int&nbsp;nth)</PRE>
<DL>
<DD><p>Returns the position of the <tt>nth</tt> captured text in the searched string. If <tt>nth</tt> is 0 (the default), <a href="QRegExp.html#pos(int)"><tt>pos</tt></a> returns the position of the whole match.</p>
<p>Example:</p>
<pre>    QRegExp rx(&quot;/([a-z]+)/([a-z]+)&quot;);
    rx.indexIn(&quot;Output /dev/null&quot;);   <span class="comment">// returns 7 (position of /dev/null)</span>
    rx.pos(0);                        <span class="comment">// returns 7 (position of /dev/null)</span>
    rx.pos(1);                        <span class="comment">// returns 8 (position of dev)</span>
    rx.pos(2);                        <span class="comment">// returns 12 (position of null)</span></pre>
<p>For zero-length matches, <a href="QRegExp.html#pos(int)"><tt>pos</tt></a> always returns -1. (For example, if cap(4) would return an empty string, pos(4) returns -1.) This is a feature of the implementation.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#cap(int)"><tt>cap</tt></a>, 
<a href="QRegExp.html#capturedTexts()"><tt>capturedTexts</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)"><!-- --></A><H3>
setCaseSensitivity</H3>
<PRE>
public final void <B>setCaseSensitivity</B>(<A HREF="../../../../com/trolltech/qt/core/Qt.CaseSensitivity.html" title="enum in com.trolltech.qt.core">Qt.CaseSensitivity</A>&nbsp;cs)</PRE>
<DL>
<DD><p>Sets case sensitive matching to <tt>cs</tt>.</p>
<p>If <tt>cs</tt> is Qt::CaseSensitive, <b>\.txt$</b> matches <tt>readme.txt</tt> but not <tt>README.TXT</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#caseSensitivity()"><tt>caseSensitivity</tt></a>, 
<a href="QRegExp.html#setPatternSyntax(com.trolltech.qt.core.QRegExp.PatternSyntax)"><tt>setPatternSyntax</tt></a>, 
<a href="QRegExp.html#setPattern(java.lang.String)"><tt>setPattern</tt></a>, 
<a href="QRegExp.html#setMinimal(boolean)"><tt>setMinimal</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setMinimal(boolean)"><!-- --></A><H3>
setMinimal</H3>
<PRE>
public final void <B>setMinimal</B>(boolean&nbsp;minimal)</PRE>
<DL>
<DD><p>Enables or disables minimal matching. If <tt>minimal</tt> is false, matching is greedy (maximal) which is the default.</p>
<p>For example, suppose we have the input string &quot;We must be &lt;b&gt;bold&lt;/b&gt;, very &lt;b&gt;bold&lt;/b&gt;!&quot; and the pattern <b>&lt;b&gt;.*&lt;/b&gt;</b>. With the default greedy (maximal) matching, the match is &quot;We must be <u>&lt;b&gt;bold&lt;/b&gt;, very &lt;b&gt;bold&lt;/b&gt;</u>!&quot;. But with minimal (non-greedy) matching, the first match is: &quot;We must be <u>&lt;b&gt;bold&lt;/b&gt;</u>, very &lt;b&gt;bold&lt;/b&gt;!&quot; and the second match is &quot;We must be &lt;b&gt;bold&lt;/b&gt;, very <u>&lt;b&gt;bold&lt;/b&gt;</u>!&quot;. In practice we might use the pattern <b>&lt;b&gt;[^&lt;]*&lt;/b&gt;</b> instead, although this will still fail for nested tags.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#isMinimal()"><tt>isMinimal</tt></a>, 
<a href="QRegExp.html#setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)"><tt>setCaseSensitivity</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setPattern(java.lang.String)"><!-- --></A><H3>
setPattern</H3>
<PRE>
public final void <B>setPattern</B>(java.lang.String&nbsp;pattern)</PRE>
<DL>
<DD><p>Sets the pattern string to <tt>pattern</tt>. The case sensitivity, wildcard, and minimal matching options are not changed.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#pattern()"><tt>pattern</tt></a>, 
<a href="QRegExp.html#setPatternSyntax(com.trolltech.qt.core.QRegExp.PatternSyntax)"><tt>setPatternSyntax</tt></a>, 
<a href="QRegExp.html#setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)"><tt>setCaseSensitivity</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setPatternSyntax(com.trolltech.qt.core.QRegExp.PatternSyntax)"><!-- --></A><H3>
setPatternSyntax</H3>
<PRE>
public final void <B>setPatternSyntax</B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.PatternSyntax.html" title="enum in com.trolltech.qt.core">QRegExp.PatternSyntax</A>&nbsp;syntax)</PRE>
<DL>
<DD><p>Sets the syntax mode for the regular expression. The default is QRegExp::RegExp.</p>
<p>Setting <tt>syntax</tt> to QRegExp::Wildcard enables simple shell-like <a href="QRegExp.html#wildcard-matching">wildcard matching</tt></a>. For example, <b>r*.txt</b> matches the string <tt>readme.txt</tt> in wildcard mode, but does not match <tt>readme</tt>.</p>
<p>Setting <tt>syntax</tt> to QRegExp::FixedString means that the pattern is interpreted as a plain string. Special characters (e.g&#x2e;, backslash) don't need to be escaped then.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#patternSyntax()"><tt>patternSyntax</tt></a>, 
<a href="QRegExp.html#setPattern(java.lang.String)"><tt>setPattern</tt></a>, 
<a href="QRegExp.html#setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)"><tt>setCaseSensitivity</tt></a>, 
<a href="QRegExp.html#escape(java.lang.String)"><tt>escape</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="escape(java.lang.String)"><!-- --></A><H3>
escape</H3>
<PRE>
public static java.lang.String <B>escape</B>(java.lang.String&nbsp;str)</PRE>
<DL>
<DD><p>Returns the string <tt>str</tt> with every regexp special character escaped with a backslash. The special characters are $, (,), *, +, ., ?, [, ,], ^, {, | and }.</p>
<p>Example:</p>
<pre>    s1 = QRegExp::escape(&quot;bingo&quot;);   <span class="comment">// s1 == &quot;bingo&quot;</span>
    s2 = QRegExp::escape(&quot;f(x)&quot;);    <span class="comment">// s2 == &quot;f\\(x\\)&quot;</span></pre>
<p>This function is useful to construct regexp patterns dynamically:</p>
<pre>    QRegExp rx(&quot;(&quot; + QRegExp::escape(name) +
               &quot;|&quot; + QRegExp::escape(alias) + &quot;)&quot;);</pre>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QRegExp.html#setPatternSyntax(com.trolltech.qt.core.QRegExp.PatternSyntax)"><tt>setPatternSyntax</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QRegExp instance pointed to by nativePointer
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<HR>

<A NAME="nativePointerArray(com.trolltech.qt.core.QRegExp[])"><!-- --></A><H3>
nativePointerArray</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> <B>nativePointerArray</B>(<A HREF="../../../../com/trolltech/qt/core/QRegExp.html" title="class in com.trolltech.qt.core">QRegExp</A>[]&nbsp;array)</PRE>
<DL>
<DD>This function returns a QNativePointer that is pointing to the specified QRegExp array.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>array</CODE> - the array that the returned pointer will point to.
<DT><B>Returns:</B><DD>a QNativePointer that is pointing to the specified array.</DL>
</DD>
</DL>
<HR>

<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(java.lang.Object&nbsp;other)</PRE>
<DL>
<DD>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QRectF.html" title="class in com.trolltech.qt.core"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/core/QRegExp.CaretMode.html" title="enum in com.trolltech.qt.core"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/core/QRegExp.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QRegExp.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>