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

changeset 7273
391d6b7b1eff
parent 6942
2602857055c5
child 7989
a21d673a8f99
equal deleted inserted replaced
7272:1779dc278077 7273:391d6b7b1eff
16 16
17 a { color: #BA6D36; } 17 a { color: #BA6D36; }
18 18
19 </style> 19 </style>
20 </head> 20 </head>
21 <body><a NAME="top" ID="top"></a> 21 <body>
22 <a NAME="top" ID="top"></a>
22 <h1>eric6.Plugins.WizardPlugins.QRegularExpressionWizard.QRegularExpressionWizardServer</h1> 23 <h1>eric6.Plugins.WizardPlugins.QRegularExpressionWizard.QRegularExpressionWizardServer</h1>
24
23 <p> 25 <p>
24 Module implementing the PyQt5 server part of the QRegularExpression wizzard. 26 Module implementing the PyQt5 server part of the QRegularExpression wizzard.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>None</td></tr> 31 <tr><td>None</td></tr>
29 </table> 32 </table>
30 <h3>Classes</h3> 33 <h3>Classes</h3>
34
31 <table> 35 <table>
32 <tr><td>None</td></tr> 36 <tr><td>None</td></tr>
33 </table> 37 </table>
34 <h3>Functions</h3> 38 <h3>Functions</h3>
39
35 <table> 40 <table>
41
36 <tr> 42 <tr>
37 <td><a href="#main">main</a></td> 43 <td><a href="#main">main</a></td>
38 <td>Function containing the main routine.</td> 44 <td>Function containing the main routine.</td>
39 </tr><tr> 45 </tr>
46 <tr>
40 <td><a href="#rxExecute">rxExecute</a></td> 47 <td><a href="#rxExecute">rxExecute</a></td>
41 <td>Function to execute the given regular expression for a given text.</td> 48 <td>Function to execute the given regular expression for a given text.</td>
42 </tr><tr> 49 </tr>
50 <tr>
43 <td><a href="#rxValidate">rxValidate</a></td> 51 <td><a href="#rxValidate">rxValidate</a></td>
44 <td>Function to validate the given regular expression.</td> 52 <td>Function to validate the given regular expression.</td>
45 </tr> 53 </tr>
46 </table> 54 </table>
47 <hr /><hr /> 55 <hr />
56 <hr />
48 <a NAME="main" ID="main"></a> 57 <a NAME="main" ID="main"></a>
49 <h2>main</h2> 58 <h2>main</h2>
50 <b>main</b>(<i></i>) 59 <b>main</b>(<i></i>)
60
51 <p> 61 <p>
52 Function containing the main routine. 62 Function containing the main routine.
53 </p> 63 </p>
54 <div align="right"><a href="#top">Up</a></div> 64 <div align="right"><a href="#top">Up</a></div>
55 <hr /><hr /> 65 <hr />
66 <hr />
56 <a NAME="rxExecute" ID="rxExecute"></a> 67 <a NAME="rxExecute" ID="rxExecute"></a>
57 <h2>rxExecute</h2> 68 <h2>rxExecute</h2>
58 <b>rxExecute</b>(<i>regexp, options, text, startpos</i>) 69 <b>rxExecute</b>(<i>regexp, options, text, startpos</i>)
70
59 <p> 71 <p>
60 Function to execute the given regular expression for a given text. 72 Function to execute the given regular expression for a given text.
61 </p><dl> 73 </p>
74 <dl>
75
62 <dt><i>regexp</i></dt> 76 <dt><i>regexp</i></dt>
63 <dd> 77 <dd>
64 regular expression to validate (string) 78 regular expression to validate (string)
65 </dd><dt><i>options</i></dt> 79 </dd>
80 <dt><i>options</i></dt>
66 <dd> 81 <dd>
67 list of options (list of string) 82 list of options (list of string)
68 </dd><dt><i>text</i></dt> 83 </dd>
84 <dt><i>text</i></dt>
69 <dd> 85 <dd>
70 text to execute on (string) 86 text to execute on (string)
71 </dd><dt><i>startpos</i></dt> 87 </dd>
88 <dt><i>startpos</i></dt>
72 <dd> 89 <dd>
73 start position for the execution (integer) 90 start position for the execution (integer)
74 </dd> 91 </dd>
75 </dl><dl> 92 </dl>
93 <dl>
76 <dt>Returns:</dt> 94 <dt>Returns:</dt>
77 <dd> 95 <dd>
78 tuple of a flag indicating a successful match (boolean) and 96 tuple of a flag indicating a successful match (boolean) and
79 a list of captures containing the complete match as matched string 97 a list of captures containing the complete match as matched string
80 (string), match start (integer), match end (integer) and match length 98 (string), match start (integer), match end (integer) and match length
81 (integer) for each entry 99 (integer) for each entry
82 </dd> 100 </dd>
83 </dl> 101 </dl>
84 <div align="right"><a href="#top">Up</a></div> 102 <div align="right"><a href="#top">Up</a></div>
85 <hr /><hr /> 103 <hr />
104 <hr />
86 <a NAME="rxValidate" ID="rxValidate"></a> 105 <a NAME="rxValidate" ID="rxValidate"></a>
87 <h2>rxValidate</h2> 106 <h2>rxValidate</h2>
88 <b>rxValidate</b>(<i>regexp, options</i>) 107 <b>rxValidate</b>(<i>regexp, options</i>)
108
89 <p> 109 <p>
90 Function to validate the given regular expression. 110 Function to validate the given regular expression.
91 </p><dl> 111 </p>
112 <dl>
113
92 <dt><i>regexp</i></dt> 114 <dt><i>regexp</i></dt>
93 <dd> 115 <dd>
94 regular expression to validate (string) 116 regular expression to validate (string)
95 </dd><dt><i>options</i></dt> 117 </dd>
118 <dt><i>options</i></dt>
96 <dd> 119 <dd>
97 list of options (list of string) 120 list of options (list of string)
98 </dd> 121 </dd>
99 </dl><dl> 122 </dl>
123 <dl>
100 <dt>Returns:</dt> 124 <dt>Returns:</dt>
101 <dd> 125 <dd>
102 tuple of flag indicating validity (boolean), error 126 tuple of flag indicating validity (boolean), error
103 string (string) and error offset (integer) 127 string (string) and error offset (integer)
104 </dd> 128 </dd>

eric ide

mercurial