src/eric7/Documentation/Source/eric7.Plugins.WizardPlugins.QRegularExpressionWizard.QRegularExpressionWizardServer.html

branch
eric7
changeset 10437
2f70ca07f0af
parent 9209
b99e7fd55fd3
child 10479
856476537696
equal deleted inserted replaced
10436:f6881d10e995 10437:2f70ca07f0af
57 <p> 57 <p>
58 Function to execute the given regular expression for a given text. 58 Function to execute the given regular expression for a given text.
59 </p> 59 </p>
60 <dl> 60 <dl>
61 61
62 <dt><i>regexp</i></dt> 62 <dt><i>regexp</i> (str)</dt>
63 <dd> 63 <dd>
64 regular expression to validate (string) 64 regular expression to validate
65 </dd> 65 </dd>
66 <dt><i>options</i></dt> 66 <dt><i>options</i> (list of str)</dt>
67 <dd> 67 <dd>
68 list of options (list of string) 68 list of options
69 </dd> 69 </dd>
70 <dt><i>text</i></dt> 70 <dt><i>text</i> (str)</dt>
71 <dd> 71 <dd>
72 text to execute on (string) 72 text to execute on
73 </dd> 73 </dd>
74 <dt><i>startpos</i></dt> 74 <dt><i>startpos</i> (int)</dt>
75 <dd> 75 <dd>
76 start position for the execution (integer) 76 start position for the execution
77 </dd> 77 </dd>
78 </dl> 78 </dl>
79 <dl> 79 <dl>
80 <dt>Return:</dt> 80 <dt>Return:</dt>
81 <dd> 81 <dd>
82 tuple of a flag indicating a successful match (boolean) and 82 tuple of a flag indicating a successful match and a list of captures
83 a list of captures containing the complete match as matched string 83 containing the complete match as matched string, match start, match end
84 (string), match start (integer), match end (integer) and match length 84 and match length for each entry
85 (integer) for each entry 85 </dd>
86 </dl>
87 <dl>
88 <dt>Return Type:</dt>
89 <dd>
90 tuple of (bool, list of [str, int, int, int])
86 </dd> 91 </dd>
87 </dl> 92 </dl>
88 <div align="right"><a href="#top">Up</a></div> 93 <div align="right"><a href="#top">Up</a></div>
89 <hr /> 94 <hr />
90 <hr /> 95 <hr />
95 <p> 100 <p>
96 Function to validate the given regular expression. 101 Function to validate the given regular expression.
97 </p> 102 </p>
98 <dl> 103 <dl>
99 104
100 <dt><i>regexp</i></dt> 105 <dt><i>regexp</i> (str)</dt>
101 <dd> 106 <dd>
102 regular expression to validate (string) 107 regular expression to validate
103 </dd> 108 </dd>
104 <dt><i>options</i></dt> 109 <dt><i>options</i> (list of str)</dt>
105 <dd> 110 <dd>
106 list of options (list of string) 111 list of options
107 </dd> 112 </dd>
108 </dl> 113 </dl>
109 <dl> 114 <dl>
110 <dt>Return:</dt> 115 <dt>Return:</dt>
111 <dd> 116 <dd>
112 tuple of flag indicating validity (boolean), error 117 tuple of flag indicating validity, error string and error offset
113 string (string) and error offset (integer) 118 </dd>
119 </dl>
120 <dl>
121 <dt>Return Type:</dt>
122 <dd>
123 tuple of (bool, str, int)
114 </dd> 124 </dd>
115 </dl> 125 </dl>
116 <div align="right"><a href="#top">Up</a></div> 126 <div align="right"><a href="#top">Up</a></div>
117 <hr /> 127 <hr />
118 </body></html> 128 </body></html>

eric ide

mercurial