108 <string><b>Comment: (?#)</b> |
108 <string><b>Comment: (?#)</b> |
109 <p>Insert some comment inside your regexp.The regex engine ignores everything after the (?# until the first closing round bracket. |
109 <p>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: </p> |
110 The following example could clarify the regexp which match a valid date: </p> |
111 <p>(?#year)(19|20)\d\d[- /.](?#month)(0[1-9]|1[012])[- /.](?#day)(0[1-9]|[12][0-9]|3[01])</p></string> |
111 <p>(?#year)(19|20)\d\d[- /.](?#month)(0[1-9]|1[012])[- /.](?#day)(0[1-9]|[12][0-9]|3[01])</p></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><b>Single character of a range (e.g. [abcd])</b><p>Select a single character of a range via a specific dialog.</p></string> |
118 <string><b>Single character of a range (e.g. [abcd])</b><p>Select a single character of a range via a specific dialog.</p></string> |
122 </property> |
119 </property> |
123 <property name="whatsThis"> |
120 <property name="whatsThis"> |
124 <string><b>Single character of a range (e.g. [abcd])</b><p>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.</p>s</string> |
121 <string><b>Single character of a range (e.g. [abcd])</b><p>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.</p>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><b>Any character: '.'</b> |
132 <string><b>Any character: '.'</b> |
139 <p>Select to insert a dot (.) in your regexp. The dot matches a single character, except line break characters (by default). |
133 <p>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.</p></string> |
135 character class is faster and more precise.</p></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 <p>Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.</p></string> |
143 <p>Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.</p></string> |
153 </property> |
144 </property> |
154 <property name="whatsThis"> |
145 <property name="whatsThis"> |
155 <string><b>Repeat contents</b> |
146 <string><b>Repeat contents</b> |
156 <p>Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.</p></string> |
147 <p>Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.</p></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><b>Non capturing parentheses: (?:)</b> |
158 <string><b>Non capturing parentheses: (?:)</b> |
171 <p>Select to insert some non capturing brackets. It can be used to apply a regexp quantifier (eg. '?' or '+') to the entire |
159 <p>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.</p></string> |
161 means that the content of the match (called the backreference) is not stored for further use.</p></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. </p> |
176 One can access the backereference with the '\1' expression. </p> |
192 <p>E.g. '([a-c])x\1x\1' will match 'axaxa', 'bxbxb' and 'cxcxc'.</p></string> |
177 <p>E.g. '([a-c])x\1x\1' will match 'axaxa', 'bxbxb' and 'cxcxc'.</p></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 <p>Select to insert some named group brackets. Usage is similar to standard group parentheses as the matched |
189 <p>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=<i>groupname</i>)). |
191 the work to do on the match becomes a bit complicated. One can access the backreference via the group name (i.e (?P=<i>groupname</i>)). |
210 E.g. (?P<foo>[abc])x(?P=foo)x(?P=foo)x matches 'axaxax','bxbxbx' or 'cxcxcx' ('foo' is the group name)</p></string> |
192 E.g. (?P<foo>[abc])x(?P=foo)x(?P=foo)x matches 'axaxax','bxbxbx' or 'cxcxcx' ('foo' is the group name)</p></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><b>Reference named group: (?P=<i>groupname</i>)</b> |
203 <string><b>Reference named group: (?P=<i>groupname</i>)</b> |
225 <p>Select to insert a reference to named group previously declared. Each reference group refers to the match |
204 <p>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'.</p> |
205 found by the corresponding named group. In the following example, (?P=foo) may refer to the charaters 'a','b' or 'c'.</p> |
227 <p>E.g. (?P<foo>[abc])x(?P=foo)x(?P=foo)x matches 'axaxax','bxbxbx' or 'cxcxcx'.</p></string> |
206 <p>E.g. (?P<foo>[abc])x(?P=foo)x(?P=foo)x matches 'axaxax','bxbxbx' or 'cxcxcx'.</p></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 <p>Select to insert the alternation symbol '|'. The alternation is used to match a single regular expression out of |
218 <p>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'</p></string> |
221 words 'cat', 'dog', ... you should express the fact that you only want to match complete words: '\b(cat|dog|mouse|fish)\b'</p></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><b>Begin of line: '^'</b> |
232 <string><b>Begin of line: '^'</b> |
260 <p>Select to insert the start line character (^). It is used to find some expressions at the begining of lines. |
233 <p>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. </p></string> |
234 E.g. '^[A-Z]' match lines starting with a capitalized character. </p></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 <p>Select to insert the end of line character ($).</p></string> |
242 <p>Select to insert the end of line character ($).</p></string> |
273 </property> |
243 </property> |
274 <property name="whatsThis"> |
244 <property name="whatsThis"> |
275 <string><b>End of line: '$'</b> |
245 <string><b>End of line: '$'</b> |
276 <p>Select to insert the end of line character ($). It is used to find some expressions at the end of lines.</p></string> |
246 <p>Select to insert the end of line character ($). It is used to find some expressions at the end of lines.</p></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><b>Word boundary</b> |
257 <string><b>Word boundary</b> |
291 <p>Select to insert the word boudary character (\b). This character is used to express the fact that word |
258 <p>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.</p></string> |
259 must begin or end at this position. E.g. '\bcat\b' matches exactly the word 'cat' while 'concatenation' is ignored.</p></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><b>Non word boundary</b> |
270 <string><b>Non word boundary</b> |
307 <p>Select to insert the word boudary character (\B). \B is the negated version of \b. \B matches at every position where \b |
271 <p>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.</p></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.</p></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><b>Positive lookahead: (?=<i>regexpr</i>)</b> |
283 <string><b>Positive lookahead: (?=<i>regexpr</i>)</b> |
323 <p>Select to insert the positive lookhead brackets. Basically, positive lookhead is used to match a character only if followed by another one. |
284 <p>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'.</p></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'.</p></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><b>Negative lookahead: (?!<i>regexpr</i>)</b> |
297 <string><b>Negative lookahead: (?!<i>regexpr</i>)</b> |
340 <p>Select to insert the negative lookhead brackets. Basically, negative lookhead is used to match a character only if it is not |
298 <p>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'.</p></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'.</p></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><b>Positive lookbehind: (?&lt;=<i>regexpr</i>)</b> |
311 <string><b>Positive lookbehind: (?&lt;=<i>regexpr</i>)</b> |
357 <p>Select to insert the positive lookbehind brackets. Lookbehind has the same effect as lookahead, but works backwards. |
312 <p>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 '(?&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 '(?&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; '(?&lt;=[abc])q' will match a 'q' if preceded by either 'a', 'b' or 'c'.</p></string> |
314 only if it is preceded by 'u'. As with lookhead, 'u' may be replaced by a more complex expression; '(?&lt;=[abc])q' will match a 'q' if preceded by either 'a', 'b' or 'c'.</p></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 <p>Select to insert the negative lookbehind brackets. Lookbehind has the same effect as lookahead, |
326 <p>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 '(?&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 '(?&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; '(?&lt;![abc])q' will match a 'q' only if not preceded by either 'a', 'b' nor 'c'.</p></string> |
329 expression; '(?&lt;![abc])q' will match a 'q' only if not preceded by either 'a', 'b' nor 'c'.</p></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><b>Undo last edit</b></string> |
352 <string><b>Undo last edit</b></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><b>Redo last edit</b></string> |
359 <string><b>Redo last edit</b></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> |