Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.ui

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3186
a05eff845522
child 5508
30626def80dc
equal deleted inserted replaced
3456:96232974dcdb 3484:645c12de6b0c
108 <string>&lt;b&gt;Comment: (?#)&lt;/b&gt; 108 <string>&lt;b&gt;Comment: (?#)&lt;/b&gt;
109 &lt;p&gt;Insert some comment inside your regexp.The regex engine ignores everything after the (?# until the first closing round bracket. 109 &lt;p&gt;Insert some comment inside your regexp.The regex engine ignores everything after the (?# until the first closing round bracket.
110 The following example could clarify the regexp which match a valid date: &lt;/p&gt; 110 The following example could clarify the regexp which match a valid date: &lt;/p&gt;
111 &lt;p&gt;(?#year)(19|20)\d\d[- /.](?#month)(0[1-9]|1[012])[- /.](?#day)(0[1-9]|[12][0-9]|3[01])&lt;/p&gt;</string> 111 &lt;p&gt;(?#year)(19|20)\d\d[- /.](?#month)(0[1-9]|1[012])[- /.](?#day)(0[1-9]|[12][0-9]|3[01])&lt;/p&gt;</string>
112 </property> 112 </property>
113 <property name="text">
114 <string>...</string>
115 </property>
116 </widget> 113 </widget>
117 </item> 114 </item>
118 <item> 115 <item>
119 <widget class="QToolButton" name="charButton"> 116 <widget class="QToolButton" name="charButton">
120 <property name="toolTip"> 117 <property name="toolTip">
121 <string>&lt;b&gt;Single character of a range (e.g. [abcd])&lt;/b&gt;&lt;p&gt;Select a single character of a range via a specific dialog.&lt;/p&gt;</string> 118 <string>&lt;b&gt;Single character of a range (e.g. [abcd])&lt;/b&gt;&lt;p&gt;Select a single character of a range via a specific dialog.&lt;/p&gt;</string>
122 </property> 119 </property>
123 <property name="whatsThis"> 120 <property name="whatsThis">
124 <string>&lt;b&gt;Single character of a range (e.g. [abcd])&lt;/b&gt;&lt;p&gt;Select a single character of a range via a specific dialog. This dialog will help to edit the range of characters and add some specific conditions.&lt;/p&gt;s</string> 121 <string>&lt;b&gt;Single character of a range (e.g. [abcd])&lt;/b&gt;&lt;p&gt;Select a single character of a range via a specific dialog. This dialog will help to edit the range of characters and add some specific conditions.&lt;/p&gt;s</string>
125 </property>
126 <property name="text">
127 <string>...</string>
128 </property> 122 </property>
129 </widget> 123 </widget>
130 </item> 124 </item>
131 <item> 125 <item>
132 <widget class="QToolButton" name="anycharButton"> 126 <widget class="QToolButton" name="anycharButton">
138 <string>&lt;b&gt;Any character: '.'&lt;/b&gt; 132 <string>&lt;b&gt;Any character: '.'&lt;/b&gt;
139 &lt;p&gt;Select to insert a dot (.) in your regexp. The dot matches a single character, except line break characters (by default). 133 &lt;p&gt;Select to insert a dot (.) in your regexp. The dot matches a single character, except line break characters (by default).
140 E.g. 'gr.y' matches 'gray', 'grey', 'gr%y', etc. Use the dot sparingly. Often, a character class or negated 134 E.g. 'gr.y' matches 'gray', 'grey', 'gr%y', etc. Use the dot sparingly. Often, a character class or negated
141 character class is faster and more precise.&lt;/p&gt;</string> 135 character class is faster and more precise.&lt;/p&gt;</string>
142 </property> 136 </property>
143 <property name="text">
144 <string>...</string>
145 </property>
146 </widget> 137 </widget>
147 </item> 138 </item>
148 <item> 139 <item>
149 <widget class="QToolButton" name="repeatButton"> 140 <widget class="QToolButton" name="repeatButton">
150 <property name="toolTip"> 141 <property name="toolTip">
152 &lt;p&gt;Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.&lt;/p&gt;</string> 143 &lt;p&gt;Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.&lt;/p&gt;</string>
153 </property> 144 </property>
154 <property name="whatsThis"> 145 <property name="whatsThis">
155 <string>&lt;b&gt;Repeat contents&lt;/b&gt; 146 <string>&lt;b&gt;Repeat contents&lt;/b&gt;
156 &lt;p&gt;Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.&lt;/p&gt;</string> 147 &lt;p&gt;Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.&lt;/p&gt;</string>
157 </property>
158 <property name="text">
159 <string>...</string>
160 </property> 148 </property>
161 </widget> 149 </widget>
162 </item> 150 </item>
163 <item> 151 <item>
164 <widget class="QToolButton" name="nonGroupButton"> 152 <widget class="QToolButton" name="nonGroupButton">
169 <property name="whatsThis"> 157 <property name="whatsThis">
170 <string>&lt;b&gt;Non capturing parentheses: (?:)&lt;/b&gt; 158 <string>&lt;b&gt;Non capturing parentheses: (?:)&lt;/b&gt;
171 &lt;p&gt;Select to insert some non capturing brackets. It can be used to apply a regexp quantifier (eg. '?' or '+') to the entire 159 &lt;p&gt;Select to insert some non capturing brackets. It can be used to apply a regexp quantifier (eg. '?' or '+') to the entire
172 group of characters inside the brakets. E.g. the regex 'Set(?:Value)?' matches 'Set' or 'SetValue'. The '?:' inside the brakets 160 group of characters inside the brakets. E.g. the regex 'Set(?:Value)?' matches 'Set' or 'SetValue'. The '?:' inside the brakets
173 means that the content of the match (called the backreference) is not stored for further use.&lt;/p&gt;</string> 161 means that the content of the match (called the backreference) is not stored for further use.&lt;/p&gt;</string>
174 </property>
175 <property name="text">
176 <string>...</string>
177 </property> 162 </property>
178 </widget> 163 </widget>
179 </item> 164 </item>
180 <item> 165 <item>
181 <widget class="QToolButton" name="groupButton"> 166 <widget class="QToolButton" name="groupButton">
189 characters inside the brakets. E.g. the regex 'Set(Value)?' matches 'Set' or 'SetValue'. Contrary to non-capturing parentheses, 174 characters inside the brakets. E.g. the regex 'Set(Value)?' matches 'Set' or 'SetValue'. Contrary to non-capturing parentheses,
190 the backreference matched inside the brakets is stored for further use (i.e. 'Value' in the second example above). 175 the backreference matched inside the brakets is stored for further use (i.e. 'Value' in the second example above).
191 One can access the backereference with the '\1' expression. &lt;/p&gt; 176 One can access the backereference with the '\1' expression. &lt;/p&gt;
192 &lt;p&gt;E.g. '([a-c])x\1x\1' will match 'axaxa', 'bxbxb' and 'cxcxc'.&lt;/p&gt;</string> 177 &lt;p&gt;E.g. '([a-c])x\1x\1' will match 'axaxa', 'bxbxb' and 'cxcxc'.&lt;/p&gt;</string>
193 </property> 178 </property>
194 <property name="text">
195 <string>...</string>
196 </property>
197 </widget> 179 </widget>
198 </item> 180 </item>
199 <item> 181 <item>
200 <widget class="QToolButton" name="namedGroupButton"> 182 <widget class="QToolButton" name="namedGroupButton">
201 <property name="toolTip"> 183 <property name="toolTip">
207 &lt;p&gt;Select to insert some named group brackets. Usage is similar to standard group parentheses as the matched 189 &lt;p&gt;Select to insert some named group brackets. Usage is similar to standard group parentheses as the matched
208 backreference is also stored for further usage. The difference is that a name is given to the match. This is useful when 190 backreference is also stored for further usage. The difference is that a name is given to the match. This is useful when
209 the work to do on the match becomes a bit complicated. One can access the backreference via the group name (i.e (?P=&lt;i&gt;groupname&lt;/i&gt;)). 191 the work to do on the match becomes a bit complicated. One can access the backreference via the group name (i.e (?P=&lt;i&gt;groupname&lt;/i&gt;)).
210 E.g. (?P&lt;foo&gt;[abc])x(?P=foo)x(?P=foo)x matches 'axaxax','bxbxbx' or 'cxcxcx' ('foo' is the group name)&lt;/p&gt;</string> 192 E.g. (?P&lt;foo&gt;[abc])x(?P=foo)x(?P=foo)x matches 'axaxax','bxbxbx' or 'cxcxcx' ('foo' is the group name)&lt;/p&gt;</string>
211 </property> 193 </property>
212 <property name="text">
213 <string>...</string>
214 </property>
215 </widget> 194 </widget>
216 </item> 195 </item>
217 <item> 196 <item>
218 <widget class="QToolButton" name="namedReferenceButton"> 197 <widget class="QToolButton" name="namedReferenceButton">
219 <property name="toolTip"> 198 <property name="toolTip">
223 <property name="whatsThis"> 202 <property name="whatsThis">
224 <string>&lt;b&gt;Reference named group: (?P=&lt;i&gt;groupname&lt;/i&gt;)&lt;/b&gt; 203 <string>&lt;b&gt;Reference named group: (?P=&lt;i&gt;groupname&lt;/i&gt;)&lt;/b&gt;
225 &lt;p&gt;Select to insert a reference to named group previously declared. Each reference group refers to the match 204 &lt;p&gt;Select to insert a reference to named group previously declared. Each reference group refers to the match
226 found by the corresponding named group. In the following example, (?P=foo) may refer to the charaters 'a','b' or 'c'.&lt;/p&gt; 205 found by the corresponding named group. In the following example, (?P=foo) may refer to the charaters 'a','b' or 'c'.&lt;/p&gt;
227 &lt;p&gt;E.g. (?P&lt;foo&gt;[abc])x(?P=foo)x(?P=foo)x matches 'axaxax','bxbxbx' or 'cxcxcx'.&lt;/p&gt;</string> 206 &lt;p&gt;E.g. (?P&lt;foo&gt;[abc])x(?P=foo)x(?P=foo)x matches 'axaxax','bxbxbx' or 'cxcxcx'.&lt;/p&gt;</string>
228 </property>
229 <property name="text">
230 <string>...</string>
231 </property> 207 </property>
232 </widget> 208 </widget>
233 </item> 209 </item>
234 <item> 210 <item>
235 <widget class="QToolButton" name="altnButton"> 211 <widget class="QToolButton" name="altnButton">
242 &lt;p&gt;Select to insert the alternation symbol '|'. The alternation is used to match a single regular expression out of 218 &lt;p&gt;Select to insert the alternation symbol '|'. The alternation is used to match a single regular expression out of
243 several possible regular expressions. E.g. 'cat|dog|mouse|fish' matches words containing the word 'cat', 'dog','mouse' or 'fish'. 219 several possible regular expressions. E.g. 'cat|dog|mouse|fish' matches words containing the word 'cat', 'dog','mouse' or 'fish'.
244 Be aware that in the above example, the alternatives refer to whole or part of words. If you want to match exactly the 220 Be aware that in the above example, the alternatives refer to whole or part of words. If you want to match exactly the
245 words 'cat', 'dog', ... you should express the fact that you only want to match complete words: '\b(cat|dog|mouse|fish)\b'&lt;/p&gt;</string> 221 words 'cat', 'dog', ... you should express the fact that you only want to match complete words: '\b(cat|dog|mouse|fish)\b'&lt;/p&gt;</string>
246 </property> 222 </property>
247 <property name="text">
248 <string>...</string>
249 </property>
250 </widget> 223 </widget>
251 </item> 224 </item>
252 <item> 225 <item>
253 <widget class="QToolButton" name="beglineButton"> 226 <widget class="QToolButton" name="beglineButton">
254 <property name="toolTip"> 227 <property name="toolTip">
258 <property name="whatsThis"> 231 <property name="whatsThis">
259 <string>&lt;b&gt;Begin of line: '^'&lt;/b&gt; 232 <string>&lt;b&gt;Begin of line: '^'&lt;/b&gt;
260 &lt;p&gt;Select to insert the start line character (^). It is used to find some expressions at the begining of lines. 233 &lt;p&gt;Select to insert the start line character (^). It is used to find some expressions at the begining of lines.
261 E.g. '^[A-Z]' match lines starting with a capitalized character. &lt;/p&gt;</string> 234 E.g. '^[A-Z]' match lines starting with a capitalized character. &lt;/p&gt;</string>
262 </property> 235 </property>
263 <property name="text">
264 <string>...</string>
265 </property>
266 </widget> 236 </widget>
267 </item> 237 </item>
268 <item> 238 <item>
269 <widget class="QToolButton" name="endlineButton"> 239 <widget class="QToolButton" name="endlineButton">
270 <property name="toolTip"> 240 <property name="toolTip">
272 &lt;p&gt;Select to insert the end of line character ($).&lt;/p&gt;</string> 242 &lt;p&gt;Select to insert the end of line character ($).&lt;/p&gt;</string>
273 </property> 243 </property>
274 <property name="whatsThis"> 244 <property name="whatsThis">
275 <string>&lt;b&gt;End of line: '$'&lt;/b&gt; 245 <string>&lt;b&gt;End of line: '$'&lt;/b&gt;
276 &lt;p&gt;Select to insert the end of line character ($). It is used to find some expressions at the end of lines.&lt;/p&gt;</string> 246 &lt;p&gt;Select to insert the end of line character ($). It is used to find some expressions at the end of lines.&lt;/p&gt;</string>
277 </property>
278 <property name="text">
279 <string>...</string>
280 </property> 247 </property>
281 </widget> 248 </widget>
282 </item> 249 </item>
283 <item> 250 <item>
284 <widget class="QToolButton" name="wordboundButton"> 251 <widget class="QToolButton" name="wordboundButton">
289 <property name="whatsThis"> 256 <property name="whatsThis">
290 <string>&lt;b&gt;Word boundary&lt;/b&gt; 257 <string>&lt;b&gt;Word boundary&lt;/b&gt;
291 &lt;p&gt;Select to insert the word boudary character (\b). This character is used to express the fact that word 258 &lt;p&gt;Select to insert the word boudary character (\b). This character is used to express the fact that word
292 must begin or end at this position. E.g. '\bcat\b' matches exactly the word 'cat' while 'concatenation' is ignored.&lt;/p&gt;</string> 259 must begin or end at this position. E.g. '\bcat\b' matches exactly the word 'cat' while 'concatenation' is ignored.&lt;/p&gt;</string>
293 </property> 260 </property>
294 <property name="text">
295 <string>...</string>
296 </property>
297 </widget> 261 </widget>
298 </item> 262 </item>
299 <item> 263 <item>
300 <widget class="QToolButton" name="nonwordboundButton"> 264 <widget class="QToolButton" name="nonwordboundButton">
301 <property name="toolTip"> 265 <property name="toolTip">
304 </property> 268 </property>
305 <property name="whatsThis"> 269 <property name="whatsThis">
306 <string>&lt;b&gt;Non word boundary&lt;/b&gt; 270 <string>&lt;b&gt;Non word boundary&lt;/b&gt;
307 &lt;p&gt;Select to insert the word boudary character (\B). \B is the negated version of \b. \B matches at every position where \b 271 &lt;p&gt;Select to insert the word boudary character (\B). \B is the negated version of \b. \B matches at every position where \b
308 does not. Effectively, \B matches at any position between two word characters as well as at any position between two non-word characters.&lt;/p&gt;</string> 272 does not. Effectively, \B matches at any position between two word characters as well as at any position between two non-word characters.&lt;/p&gt;</string>
309 </property>
310 <property name="text">
311 <string>...</string>
312 </property> 273 </property>
313 </widget> 274 </widget>
314 </item> 275 </item>
315 <item> 276 <item>
316 <widget class="QToolButton" name="poslookaheadButton"> 277 <widget class="QToolButton" name="poslookaheadButton">
322 <string>&lt;b&gt;Positive lookahead: (?=&lt;i&gt;regexpr&lt;/i&gt;)&lt;/b&gt; 283 <string>&lt;b&gt;Positive lookahead: (?=&lt;i&gt;regexpr&lt;/i&gt;)&lt;/b&gt;
323 &lt;p&gt;Select to insert the positive lookhead brackets. Basically, positive lookhead is used to match a character only if followed by another one. 284 &lt;p&gt;Select to insert the positive lookhead brackets. Basically, positive lookhead is used to match a character only if followed by another one.
324 Writting 'q(?=u)' means that you want to match the 'q' character only if it is followed by 'u'. In this statement 'u' is a trivial 285 Writting 'q(?=u)' means that you want to match the 'q' character only if it is followed by 'u'. In this statement 'u' is a trivial
325 regexp which may be replaced by a more complex expression; q(?=[abc])' will match a 'q' if followed by either 'a', 'b' or 'c'.&lt;/p&gt;</string> 286 regexp which may be replaced by a more complex expression; q(?=[abc])' will match a 'q' if followed by either 'a', 'b' or 'c'.&lt;/p&gt;</string>
326 </property> 287 </property>
327 <property name="text">
328 <string>...</string>
329 </property>
330 </widget> 288 </widget>
331 </item> 289 </item>
332 <item> 290 <item>
333 <widget class="QToolButton" name="neglookaheadButton"> 291 <widget class="QToolButton" name="neglookaheadButton">
334 <property name="toolTip"> 292 <property name="toolTip">
339 <string>&lt;b&gt;Negative lookahead: (?!&lt;i&gt;regexpr&lt;/i&gt;)&lt;/b&gt; 297 <string>&lt;b&gt;Negative lookahead: (?!&lt;i&gt;regexpr&lt;/i&gt;)&lt;/b&gt;
340 &lt;p&gt;Select to insert the negative lookhead brackets. Basically, negative lookhead is used to match a character only if it is not 298 &lt;p&gt;Select to insert the negative lookhead brackets. Basically, negative lookhead is used to match a character only if it is not
341 followed by a another one. Writting 'q(?!u)' means that you want to match 'q' only if it is not followed by 'u'. In this statement, 'u' is a 299 followed by a another one. Writting 'q(?!u)' means that you want to match 'q' only if it is not followed by 'u'. In this statement, 'u' is a
342 trivial regexp which may be replaced by a more complex expression; 'q(?![abc])' will match a 'q' if it is followed by anything else than 'a', 'b' or 'c'.&lt;/p&gt;</string> 300 trivial regexp which may be replaced by a more complex expression; 'q(?![abc])' will match a 'q' if it is followed by anything else than 'a', 'b' or 'c'.&lt;/p&gt;</string>
343 </property> 301 </property>
344 <property name="text">
345 <string>...</string>
346 </property>
347 </widget> 302 </widget>
348 </item> 303 </item>
349 <item> 304 <item>
350 <widget class="QToolButton" name="poslookbehindButton"> 305 <widget class="QToolButton" name="poslookbehindButton">
351 <property name="toolTip"> 306 <property name="toolTip">
355 <property name="whatsThis"> 310 <property name="whatsThis">
356 <string>&lt;b&gt;Positive lookbehind: (?&amp;lt;=&lt;i&gt;regexpr&lt;/i&gt;)&lt;/b&gt; 311 <string>&lt;b&gt;Positive lookbehind: (?&amp;lt;=&lt;i&gt;regexpr&lt;/i&gt;)&lt;/b&gt;
357 &lt;p&gt;Select to insert the positive lookbehind brackets. Lookbehind has the same effect as lookahead, but works backwards. 312 &lt;p&gt;Select to insert the positive lookbehind brackets. Lookbehind has the same effect as lookahead, but works backwards.
358 It is used to match a character only if preceded by another one. Writting '(?&amp;lt;=u)q' means that you want to match the 'q' character 313 It is used to match a character only if preceded by another one. Writting '(?&amp;lt;=u)q' means that you want to match the 'q' character
359 only if it is preceded by 'u'. As with lookhead, 'u' may be replaced by a more complex expression; '(?&amp;lt;=[abc])q' will match a 'q' if preceded by either 'a', 'b' or 'c'.&lt;/p&gt;</string> 314 only if it is preceded by 'u'. As with lookhead, 'u' may be replaced by a more complex expression; '(?&amp;lt;=[abc])q' will match a 'q' if preceded by either 'a', 'b' or 'c'.&lt;/p&gt;</string>
360 </property>
361 <property name="text">
362 <string>...</string>
363 </property> 315 </property>
364 </widget> 316 </widget>
365 </item> 317 </item>
366 <item> 318 <item>
367 <widget class="QToolButton" name="neglookbehindButton"> 319 <widget class="QToolButton" name="neglookbehindButton">
374 &lt;p&gt;Select to insert the negative lookbehind brackets. Lookbehind has the same effect as lookahead, 326 &lt;p&gt;Select to insert the negative lookbehind brackets. Lookbehind has the same effect as lookahead,
375 but works backwards. It is used to match a character only if not preceded by another one. Writting '(?&amp;lt;!u)q' means that you want to match the 'q' 327 but works backwards. It is used to match a character only if not preceded by another one. Writting '(?&amp;lt;!u)q' means that you want to match the 'q'
376 character only if it is not preceded by 'u'. As other lookaround, 'u' may be replaced by a more complex 328 character only if it is not preceded by 'u'. As other lookaround, 'u' may be replaced by a more complex
377 expression; '(?&amp;lt;![abc])q' will match a 'q' only if not preceded by either 'a', 'b' nor 'c'.&lt;/p&gt;</string> 329 expression; '(?&amp;lt;![abc])q' will match a 'q' only if not preceded by either 'a', 'b' nor 'c'.&lt;/p&gt;</string>
378 </property> 330 </property>
379 <property name="text">
380 <string>...</string>
381 </property>
382 </widget> 331 </widget>
383 </item> 332 </item>
384 <item> 333 <item>
385 <spacer> 334 <spacer>
386 <property name="orientation"> 335 <property name="orientation">
400 <item> 349 <item>
401 <widget class="QToolButton" name="undoButton"> 350 <widget class="QToolButton" name="undoButton">
402 <property name="toolTip"> 351 <property name="toolTip">
403 <string>&lt;b&gt;Undo last edit&lt;/b&gt;</string> 352 <string>&lt;b&gt;Undo last edit&lt;/b&gt;</string>
404 </property> 353 </property>
405 <property name="text">
406 <string>...</string>
407 </property>
408 </widget> 354 </widget>
409 </item> 355 </item>
410 <item> 356 <item>
411 <widget class="QToolButton" name="redoButton"> 357 <widget class="QToolButton" name="redoButton">
412 <property name="toolTip"> 358 <property name="toolTip">
413 <string>&lt;b&gt;Redo last edit&lt;/b&gt;</string> 359 <string>&lt;b&gt;Redo last edit&lt;/b&gt;</string>
414 </property>
415 <property name="text">
416 <string>...</string>
417 </property> 360 </property>
418 </widget> 361 </widget>
419 </item> 362 </item>
420 <item> 363 <item>
421 <spacer> 364 <spacer>

eric ide

mercurial