eric6/Documentation/Source/eric6.Plugins.WizardPlugins.QRegularExpressionWizard.QRegularExpressionWizardServer.html

changeset 6942
2602857055c5
parent 3673
e26d7d0c1088
child 7273
391d6b7b1eff
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Plugins.WizardPlugins.QRegularExpressionWizard.QRegularExpressionWizardServer</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.Plugins.WizardPlugins.QRegularExpressionWizard.QRegularExpressionWizardServer</h1>
23 <p>
24 Module implementing the PyQt5 server part of the QRegularExpression wizzard.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr><td>None</td></tr>
33 </table>
34 <h3>Functions</h3>
35 <table>
36 <tr>
37 <td><a href="#main">main</a></td>
38 <td>Function containing the main routine.</td>
39 </tr><tr>
40 <td><a href="#rxExecute">rxExecute</a></td>
41 <td>Function to execute the given regular expression for a given text.</td>
42 </tr><tr>
43 <td><a href="#rxValidate">rxValidate</a></td>
44 <td>Function to validate the given regular expression.</td>
45 </tr>
46 </table>
47 <hr /><hr />
48 <a NAME="main" ID="main"></a>
49 <h2>main</h2>
50 <b>main</b>(<i></i>)
51 <p>
52 Function containing the main routine.
53 </p>
54 <div align="right"><a href="#top">Up</a></div>
55 <hr /><hr />
56 <a NAME="rxExecute" ID="rxExecute"></a>
57 <h2>rxExecute</h2>
58 <b>rxExecute</b>(<i>regexp, options, text, startpos</i>)
59 <p>
60 Function to execute the given regular expression for a given text.
61 </p><dl>
62 <dt><i>regexp</i></dt>
63 <dd>
64 regular expression to validate (string)
65 </dd><dt><i>options</i></dt>
66 <dd>
67 list of options (list of string)
68 </dd><dt><i>text</i></dt>
69 <dd>
70 text to execute on (string)
71 </dd><dt><i>startpos</i></dt>
72 <dd>
73 start position for the execution (integer)
74 </dd>
75 </dl><dl>
76 <dt>Returns:</dt>
77 <dd>
78 tuple of a flag indicating a successful match (boolean) and
79 a list of captures containing the complete match as matched string
80 (string), match start (integer), match end (integer) and match length
81 (integer) for each entry
82 </dd>
83 </dl>
84 <div align="right"><a href="#top">Up</a></div>
85 <hr /><hr />
86 <a NAME="rxValidate" ID="rxValidate"></a>
87 <h2>rxValidate</h2>
88 <b>rxValidate</b>(<i>regexp, options</i>)
89 <p>
90 Function to validate the given regular expression.
91 </p><dl>
92 <dt><i>regexp</i></dt>
93 <dd>
94 regular expression to validate (string)
95 </dd><dt><i>options</i></dt>
96 <dd>
97 list of options (list of string)
98 </dd>
99 </dl><dl>
100 <dt>Returns:</dt>
101 <dd>
102 tuple of flag indicating validity (boolean), error
103 string (string) and error offset (integer)
104 </dd>
105 </dl>
106 <div align="right"><a href="#top">Up</a></div>
107 <hr />
108 </body></html>

eric ide

mercurial