56 <string><b>Comment: (?#)</b> |
56 <string><b>Comment: (?#)</b> |
57 <p>Insert some comment inside your regexp.The regex engine ignores everything after the (?# until the first closing round bracket. |
57 <p>Insert some comment inside your regexp.The regex engine ignores everything after the (?# until the first closing round bracket. |
58 The following example could clarify the regexp which match a valid date: </p> |
58 The following example could clarify the regexp which match a valid date: </p> |
59 <p>(?#year)(19|20)\d\d[- /.](?#month)(0[1-9]|1[012])[- /.](?#day)(0[1-9]|[12][0-9]|3[01])</p></string> |
59 <p>(?#year)(19|20)\d\d[- /.](?#month)(0[1-9]|1[012])[- /.](?#day)(0[1-9]|[12][0-9]|3[01])</p></string> |
60 </property> |
60 </property> |
61 <property name="text"> |
|
62 <string>...</string> |
|
63 </property> |
|
64 </widget> |
61 </widget> |
65 </item> |
62 </item> |
66 <item> |
63 <item> |
67 <widget class="QToolButton" name="charButton"> |
64 <widget class="QToolButton" name="charButton"> |
68 <property name="toolTip"> |
65 <property name="toolTip"> |
69 <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> |
66 <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> |
70 </property> |
67 </property> |
71 <property name="whatsThis"> |
68 <property name="whatsThis"> |
72 <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> |
69 <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> |
73 </property> |
|
74 <property name="text"> |
|
75 <string>...</string> |
|
76 </property> |
70 </property> |
77 </widget> |
71 </widget> |
78 </item> |
72 </item> |
79 <item> |
73 <item> |
80 <widget class="QToolButton" name="anycharButton"> |
74 <widget class="QToolButton" name="anycharButton"> |
86 <string><b>Any character: '.'</b> |
80 <string><b>Any character: '.'</b> |
87 <p>Select to insert a dot (.) in your regexp. The dot matches a single character, except line break characters (by default). |
81 <p>Select to insert a dot (.) in your regexp. The dot matches a single character, except line break characters (by default). |
88 E.g. 'gr.y' matches 'gray', 'grey', 'gr%y', etc. Use the dot sparingly. Often, a character class or negated |
82 E.g. 'gr.y' matches 'gray', 'grey', 'gr%y', etc. Use the dot sparingly. Often, a character class or negated |
89 character class is faster and more precise.</p></string> |
83 character class is faster and more precise.</p></string> |
90 </property> |
84 </property> |
91 <property name="text"> |
|
92 <string>...</string> |
|
93 </property> |
|
94 </widget> |
85 </widget> |
95 </item> |
86 </item> |
96 <item> |
87 <item> |
97 <widget class="QToolButton" name="repeatButton"> |
88 <widget class="QToolButton" name="repeatButton"> |
98 <property name="toolTip"> |
89 <property name="toolTip"> |
100 <p>Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.</p></string> |
91 <p>Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.</p></string> |
101 </property> |
92 </property> |
102 <property name="whatsThis"> |
93 <property name="whatsThis"> |
103 <string><b>Repeat contents</b> |
94 <string><b>Repeat contents</b> |
104 <p>Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.</p></string> |
95 <p>Select a repetition condition via a specific dialog. This dialog will help to specify the allowed range for repetitions.</p></string> |
105 </property> |
|
106 <property name="text"> |
|
107 <string>...</string> |
|
108 </property> |
96 </property> |
109 </widget> |
97 </widget> |
110 </item> |
98 </item> |
111 <item> |
99 <item> |
112 <widget class="QToolButton" name="nonGroupButton"> |
100 <widget class="QToolButton" name="nonGroupButton"> |
118 <string><b>Non capturing parentheses: (?:)</b> |
106 <string><b>Non capturing parentheses: (?:)</b> |
119 <p>Select to insert some non capturing brackets. It can be used to apply a regexp quantifier (eg. '?' or '+') to the entire |
107 <p>Select to insert some non capturing brackets. It can be used to apply a regexp quantifier (eg. '?' or '+') to the entire |
120 group of characters inside the brakets. E.g. the regex 'Set(?:Value)?' matches 'Set' or 'SetValue'. The '?:' inside the brakets |
108 group of characters inside the brakets. E.g. the regex 'Set(?:Value)?' matches 'Set' or 'SetValue'. The '?:' inside the brakets |
121 means that the content of the match (called the backreference) is not stored for further use.</p></string> |
109 means that the content of the match (called the backreference) is not stored for further use.</p></string> |
122 </property> |
110 </property> |
123 <property name="text"> |
|
124 <string>...</string> |
|
125 </property> |
|
126 </widget> |
111 </widget> |
127 </item> |
112 </item> |
128 <item> |
113 <item> |
129 <widget class="QToolButton" name="atomicGroupButton"> |
114 <widget class="QToolButton" name="atomicGroupButton"> |
130 <property name="toolTip"> |
115 <property name="toolTip"> |
134 <property name="whatsThis"> |
119 <property name="whatsThis"> |
135 <string><b>Atomic non capturing parentheses: (?>)</b> |
120 <string><b>Atomic non capturing parentheses: (?>)</b> |
136 <p>Select to insert some atomic non capturing brackets. It can be used to apply a regexp quantifier (eg. '?' or '+') to the entire |
121 <p>Select to insert some atomic non capturing brackets. It can be used to apply a regexp quantifier (eg. '?' or '+') to the entire |
137 group of characters inside the brakets. E.g. the regex 'Set(?>Value)?' matches 'Set' or 'SetValue'. The '?>' inside the brakets |
122 group of characters inside the brakets. E.g. the regex 'Set(?>Value)?' matches 'Set' or 'SetValue'. The '?>' inside the brakets |
138 means that the content of the match (called the backreference) is not stored for further use.</p></string> |
123 means that the content of the match (called the backreference) is not stored for further use.</p></string> |
139 </property> |
|
140 <property name="text"> |
|
141 <string>...</string> |
|
142 </property> |
124 </property> |
143 </widget> |
125 </widget> |
144 </item> |
126 </item> |
145 <item> |
127 <item> |
146 <widget class="QToolButton" name="groupButton"> |
128 <widget class="QToolButton" name="groupButton"> |
154 characters inside the brakets. E.g. the regex 'Set(Value)?' matches 'Set' or 'SetValue'. Contrary to non-capturing parentheses, |
136 characters inside the brakets. E.g. the regex 'Set(Value)?' matches 'Set' or 'SetValue'. Contrary to non-capturing parentheses, |
155 the backreference matched inside the brakets is stored for further use (i.e. 'Value' in the second example above). |
137 the backreference matched inside the brakets is stored for further use (i.e. 'Value' in the second example above). |
156 One can access the backereference with the '\1' expression. </p> |
138 One can access the backereference with the '\1' expression. </p> |
157 <p>E.g. '([a-c])x\1x\1' will match 'axaxa', 'bxbxb' and 'cxcxc'.</p></string> |
139 <p>E.g. '([a-c])x\1x\1' will match 'axaxa', 'bxbxb' and 'cxcxc'.</p></string> |
158 </property> |
140 </property> |
159 <property name="text"> |
|
160 <string>...</string> |
|
161 </property> |
|
162 </widget> |
141 </widget> |
163 </item> |
142 </item> |
164 <item> |
143 <item> |
165 <widget class="QToolButton" name="namedGroupButton"> |
144 <widget class="QToolButton" name="namedGroupButton"> |
166 <property name="toolTip"> |
145 <property name="toolTip"> |
172 <p>Select to insert some named group brackets. Usage is similar to standard group parentheses as the matched |
151 <p>Select to insert some named group brackets. Usage is similar to standard group parentheses as the matched |
173 backreference is also stored for further usage. The difference is that a name is given to the match. This is useful when |
152 backreference is also stored for further usage. The difference is that a name is given to the match. This is useful when |
174 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>)). |
153 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>)). |
175 E.g. (?P<foo>[abc])x(?P=foo)x(?P=foo)x matches 'axaxax','bxbxbx' or 'cxcxcx' ('foo' is the group name)</p></string> |
154 E.g. (?P<foo>[abc])x(?P=foo)x(?P=foo)x matches 'axaxax','bxbxbx' or 'cxcxcx' ('foo' is the group name)</p></string> |
176 </property> |
155 </property> |
177 <property name="text"> |
|
178 <string>...</string> |
|
179 </property> |
|
180 </widget> |
156 </widget> |
181 </item> |
157 </item> |
182 <item> |
158 <item> |
183 <widget class="QToolButton" name="namedReferenceButton"> |
159 <widget class="QToolButton" name="namedReferenceButton"> |
184 <property name="toolTip"> |
160 <property name="toolTip"> |
188 <property name="whatsThis"> |
164 <property name="whatsThis"> |
189 <string><b>Reference named group: (?P=<i>groupname</i>)</b> |
165 <string><b>Reference named group: (?P=<i>groupname</i>)</b> |
190 <p>Select to insert a reference to named group previously declared. Each reference group refers to the match |
166 <p>Select to insert a reference to named group previously declared. Each reference group refers to the match |
191 found by the corresponding named group. In the following example, (?P=foo) may refer to the charaters 'a','b' or 'c'.</p> |
167 found by the corresponding named group. In the following example, (?P=foo) may refer to the charaters 'a','b' or 'c'.</p> |
192 <p>E.g. (?P<foo>[abc])x(?P=foo)x(?P=foo)x matches 'axaxax','bxbxbx' or 'cxcxcx'.</p></string> |
168 <p>E.g. (?P<foo>[abc])x(?P=foo)x(?P=foo)x matches 'axaxax','bxbxbx' or 'cxcxcx'.</p></string> |
193 </property> |
|
194 <property name="text"> |
|
195 <string>...</string> |
|
196 </property> |
169 </property> |
197 </widget> |
170 </widget> |
198 </item> |
171 </item> |
199 <item> |
172 <item> |
200 <widget class="QToolButton" name="altnButton"> |
173 <widget class="QToolButton" name="altnButton"> |
207 <p>Select to insert the alternation symbol '|'. The alternation is used to match a single regular expression out of |
180 <p>Select to insert the alternation symbol '|'. The alternation is used to match a single regular expression out of |
208 several possible regular expressions. E.g. 'cat|dog|mouse|fish' matches words containing the word 'cat', 'dog','mouse' or 'fish'. |
181 several possible regular expressions. E.g. 'cat|dog|mouse|fish' matches words containing the word 'cat', 'dog','mouse' or 'fish'. |
209 Be aware that in the above example, the alternatives refer to whole or part of words. If you want to match exactly the |
182 Be aware that in the above example, the alternatives refer to whole or part of words. If you want to match exactly the |
210 words 'cat', 'dog', ... you should express the fact that you only want to match complete words: '\b(cat|dog|mouse|fish)\b'</p></string> |
183 words 'cat', 'dog', ... you should express the fact that you only want to match complete words: '\b(cat|dog|mouse|fish)\b'</p></string> |
211 </property> |
184 </property> |
212 <property name="text"> |
|
213 <string>...</string> |
|
214 </property> |
|
215 </widget> |
185 </widget> |
216 </item> |
186 </item> |
217 <item> |
187 <item> |
218 <widget class="QToolButton" name="beglineButton"> |
188 <widget class="QToolButton" name="beglineButton"> |
219 <property name="toolTip"> |
189 <property name="toolTip"> |
223 <property name="whatsThis"> |
193 <property name="whatsThis"> |
224 <string><b>Begin of line: '^'</b> |
194 <string><b>Begin of line: '^'</b> |
225 <p>Select to insert the start line character (^). It is used to find some expressions at the begining of lines. |
195 <p>Select to insert the start line character (^). It is used to find some expressions at the begining of lines. |
226 E.g. '^[A-Z]' match lines starting with a capitalized character. </p></string> |
196 E.g. '^[A-Z]' match lines starting with a capitalized character. </p></string> |
227 </property> |
197 </property> |
228 <property name="text"> |
|
229 <string>...</string> |
|
230 </property> |
|
231 </widget> |
198 </widget> |
232 </item> |
199 </item> |
233 <item> |
200 <item> |
234 <widget class="QToolButton" name="endlineButton"> |
201 <widget class="QToolButton" name="endlineButton"> |
235 <property name="toolTip"> |
202 <property name="toolTip"> |
237 <p>Select to insert the end of line character ($).</p></string> |
204 <p>Select to insert the end of line character ($).</p></string> |
238 </property> |
205 </property> |
239 <property name="whatsThis"> |
206 <property name="whatsThis"> |
240 <string><b>End of line: '$'</b> |
207 <string><b>End of line: '$'</b> |
241 <p>Select to insert the end of line character ($). It is used to find some expressions at the end of lines.</p></string> |
208 <p>Select to insert the end of line character ($). It is used to find some expressions at the end of lines.</p></string> |
242 </property> |
|
243 <property name="text"> |
|
244 <string>...</string> |
|
245 </property> |
209 </property> |
246 </widget> |
210 </widget> |
247 </item> |
211 </item> |
248 <item> |
212 <item> |
249 <widget class="QToolButton" name="wordboundButton"> |
213 <widget class="QToolButton" name="wordboundButton"> |
254 <property name="whatsThis"> |
218 <property name="whatsThis"> |
255 <string><b>Word boundary</b> |
219 <string><b>Word boundary</b> |
256 <p>Select to insert the word boudary character (\b). This character is used to express the fact that word |
220 <p>Select to insert the word boudary character (\b). This character is used to express the fact that word |
257 must begin or end at this position. E.g. '\bcat\b' matches exactly the word 'cat' while 'concatenation' is ignored.</p></string> |
221 must begin or end at this position. E.g. '\bcat\b' matches exactly the word 'cat' while 'concatenation' is ignored.</p></string> |
258 </property> |
222 </property> |
259 <property name="text"> |
|
260 <string>...</string> |
|
261 </property> |
|
262 </widget> |
223 </widget> |
263 </item> |
224 </item> |
264 <item> |
225 <item> |
265 <widget class="QToolButton" name="nonwordboundButton"> |
226 <widget class="QToolButton" name="nonwordboundButton"> |
266 <property name="toolTip"> |
227 <property name="toolTip"> |
269 </property> |
230 </property> |
270 <property name="whatsThis"> |
231 <property name="whatsThis"> |
271 <string><b>Non word boundary</b> |
232 <string><b>Non word boundary</b> |
272 <p>Select to insert the word boudary character (\B). \B is the negated version of \b. \B matches at every position where \b |
233 <p>Select to insert the word boudary character (\B). \B is the negated version of \b. \B matches at every position where \b |
273 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> |
234 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> |
274 </property> |
|
275 <property name="text"> |
|
276 <string>...</string> |
|
277 </property> |
235 </property> |
278 </widget> |
236 </widget> |
279 </item> |
237 </item> |
280 <item> |
238 <item> |
281 <widget class="QToolButton" name="poslookaheadButton"> |
239 <widget class="QToolButton" name="poslookaheadButton"> |
287 <string><b>Positive lookahead: (?=<i>regexpr</i>)</b> |
245 <string><b>Positive lookahead: (?=<i>regexpr</i>)</b> |
288 <p>Select to insert the positive lookhead brackets. Basically, positive lookhead is used to match a character only if followed by another one. |
246 <p>Select to insert the positive lookhead brackets. Basically, positive lookhead is used to match a character only if followed by another one. |
289 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 |
247 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 |
290 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> |
248 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> |
291 </property> |
249 </property> |
292 <property name="text"> |
|
293 <string>...</string> |
|
294 </property> |
|
295 </widget> |
250 </widget> |
296 </item> |
251 </item> |
297 <item> |
252 <item> |
298 <widget class="QToolButton" name="neglookaheadButton"> |
253 <widget class="QToolButton" name="neglookaheadButton"> |
299 <property name="toolTip"> |
254 <property name="toolTip"> |
304 <string><b>Negative lookahead: (?!<i>regexpr</i>)</b> |
259 <string><b>Negative lookahead: (?!<i>regexpr</i>)</b> |
305 <p>Select to insert the negative lookhead brackets. Basically, negative lookhead is used to match a character only if it is not |
260 <p>Select to insert the negative lookhead brackets. Basically, negative lookhead is used to match a character only if it is not |
306 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 |
261 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 |
307 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> |
262 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> |
308 </property> |
263 </property> |
309 <property name="text"> |
|
310 <string>...</string> |
|
311 </property> |
|
312 </widget> |
264 </widget> |
313 </item> |
265 </item> |
314 <item> |
266 <item> |
315 <widget class="QToolButton" name="poslookbehindButton"> |
267 <widget class="QToolButton" name="poslookbehindButton"> |
316 <property name="toolTip"> |
268 <property name="toolTip"> |
320 <property name="whatsThis"> |
272 <property name="whatsThis"> |
321 <string><b>Positive lookbehind: (?&lt;=<i>regexpr</i>)</b> |
273 <string><b>Positive lookbehind: (?&lt;=<i>regexpr</i>)</b> |
322 <p>Select to insert the positive lookbehind brackets. Lookbehind has the same effect as lookahead, but works backwards. |
274 <p>Select to insert the positive lookbehind brackets. Lookbehind has the same effect as lookahead, but works backwards. |
323 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 |
275 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 |
324 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> |
276 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> |
325 </property> |
|
326 <property name="text"> |
|
327 <string>...</string> |
|
328 </property> |
277 </property> |
329 </widget> |
278 </widget> |
330 </item> |
279 </item> |
331 <item> |
280 <item> |
332 <widget class="QToolButton" name="neglookbehindButton"> |
281 <widget class="QToolButton" name="neglookbehindButton"> |
339 <p>Select to insert the negative lookbehind brackets. Lookbehind has the same effect as lookahead, |
288 <p>Select to insert the negative lookbehind brackets. Lookbehind has the same effect as lookahead, |
340 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' |
289 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' |
341 character only if it is not preceded by 'u'. As other lookaround, 'u' may be replaced by a more complex |
290 character only if it is not preceded by 'u'. As other lookaround, 'u' may be replaced by a more complex |
342 expression; '(?&lt;![abc])q' will match a 'q' only if not preceded by either 'a', 'b' nor 'c'.</p></string> |
291 expression; '(?&lt;![abc])q' will match a 'q' only if not preceded by either 'a', 'b' nor 'c'.</p></string> |
343 </property> |
292 </property> |
344 <property name="text"> |
|
345 <string>...</string> |
|
346 </property> |
|
347 </widget> |
293 </widget> |
348 </item> |
294 </item> |
349 <item> |
295 <item> |
350 <spacer> |
296 <spacer> |
351 <property name="orientation"> |
297 <property name="orientation"> |
365 <item> |
311 <item> |
366 <widget class="QToolButton" name="undoButton"> |
312 <widget class="QToolButton" name="undoButton"> |
367 <property name="toolTip"> |
313 <property name="toolTip"> |
368 <string><b>Undo last edit</b></string> |
314 <string><b>Undo last edit</b></string> |
369 </property> |
315 </property> |
370 <property name="text"> |
|
371 <string>...</string> |
|
372 </property> |
|
373 </widget> |
316 </widget> |
374 </item> |
317 </item> |
375 <item> |
318 <item> |
376 <widget class="QToolButton" name="redoButton"> |
319 <widget class="QToolButton" name="redoButton"> |
377 <property name="toolTip"> |
320 <property name="toolTip"> |
378 <string><b>Redo last edit</b></string> |
321 <string><b>Redo last edit</b></string> |
379 </property> |
|
380 <property name="text"> |
|
381 <string>...</string> |
|
382 </property> |
322 </property> |
383 </widget> |
323 </widget> |
384 </item> |
324 </item> |
385 <item> |
325 <item> |
386 <spacer> |
326 <spacer> |