Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardDialog.ui

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3186
a05eff845522
child 5508
30626def80dc
equal deleted inserted replaced
3456:96232974dcdb 3484:645c12de6b0c
56 <string>&lt;b&gt;Comment: (?#)&lt;/b&gt; 56 <string>&lt;b&gt;Comment: (?#)&lt;/b&gt;
57 &lt;p&gt;Insert some comment inside your regexp.The regex engine ignores everything after the (?# until the first closing round bracket. 57 &lt;p&gt;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: &lt;/p&gt; 58 The following example could clarify the regexp which match a valid date: &lt;/p&gt;
59 &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> 59 &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>
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>&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> 66 <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>
70 </property> 67 </property>
71 <property name="whatsThis"> 68 <property name="whatsThis">
72 <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> 69 <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>
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>&lt;b&gt;Any character: '.'&lt;/b&gt; 80 <string>&lt;b&gt;Any character: '.'&lt;/b&gt;
87 &lt;p&gt;Select to insert a dot (.) in your regexp. The dot matches a single character, except line break characters (by default). 81 &lt;p&gt;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.&lt;/p&gt;</string> 83 character class is faster and more precise.&lt;/p&gt;</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 &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> 91 &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>
101 </property> 92 </property>
102 <property name="whatsThis"> 93 <property name="whatsThis">
103 <string>&lt;b&gt;Repeat contents&lt;/b&gt; 94 <string>&lt;b&gt;Repeat contents&lt;/b&gt;
104 &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> 95 &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>
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>&lt;b&gt;Non capturing parentheses: (?:)&lt;/b&gt; 106 <string>&lt;b&gt;Non capturing parentheses: (?:)&lt;/b&gt;
119 &lt;p&gt;Select to insert some non capturing brackets. It can be used to apply a regexp quantifier (eg. '?' or '+') to the entire 107 &lt;p&gt;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.&lt;/p&gt;</string> 109 means that the content of the match (called the backreference) is not stored for further use.&lt;/p&gt;</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>&lt;b&gt;Atomic non capturing parentheses: (?&gt;)&lt;/b&gt; 120 <string>&lt;b&gt;Atomic non capturing parentheses: (?&gt;)&lt;/b&gt;
136 &lt;p&gt;Select to insert some atomic non capturing brackets. It can be used to apply a regexp quantifier (eg. '?' or '+') to the entire 121 &lt;p&gt;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(?&gt;Value)?' matches 'Set' or 'SetValue'. The '?&gt;' inside the brakets 122 group of characters inside the brakets. E.g. the regex 'Set(?&gt;Value)?' matches 'Set' or 'SetValue'. The '?&gt;' inside the brakets
138 means that the content of the match (called the backreference) is not stored for further use.&lt;/p&gt;</string> 123 means that the content of the match (called the backreference) is not stored for further use.&lt;/p&gt;</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. &lt;/p&gt; 138 One can access the backereference with the '\1' expression. &lt;/p&gt;
157 &lt;p&gt;E.g. '([a-c])x\1x\1' will match 'axaxa', 'bxbxb' and 'cxcxc'.&lt;/p&gt;</string> 139 &lt;p&gt;E.g. '([a-c])x\1x\1' will match 'axaxa', 'bxbxb' and 'cxcxc'.&lt;/p&gt;</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 &lt;p&gt;Select to insert some named group brackets. Usage is similar to standard group parentheses as the matched 151 &lt;p&gt;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=&lt;i&gt;groupname&lt;/i&gt;)). 153 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;)).
175 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> 154 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>
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>&lt;b&gt;Reference named group: (?P=&lt;i&gt;groupname&lt;/i&gt;)&lt;/b&gt; 165 <string>&lt;b&gt;Reference named group: (?P=&lt;i&gt;groupname&lt;/i&gt;)&lt;/b&gt;
190 &lt;p&gt;Select to insert a reference to named group previously declared. Each reference group refers to the match 166 &lt;p&gt;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'.&lt;/p&gt; 167 found by the corresponding named group. In the following example, (?P=foo) may refer to the charaters 'a','b' or 'c'.&lt;/p&gt;
192 &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> 168 &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>
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 &lt;p&gt;Select to insert the alternation symbol '|'. The alternation is used to match a single regular expression out of 180 &lt;p&gt;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'&lt;/p&gt;</string> 183 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>
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>&lt;b&gt;Begin of line: '^'&lt;/b&gt; 194 <string>&lt;b&gt;Begin of line: '^'&lt;/b&gt;
225 &lt;p&gt;Select to insert the start line character (^). It is used to find some expressions at the begining of lines. 195 &lt;p&gt;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. &lt;/p&gt;</string> 196 E.g. '^[A-Z]' match lines starting with a capitalized character. &lt;/p&gt;</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 &lt;p&gt;Select to insert the end of line character ($).&lt;/p&gt;</string> 204 &lt;p&gt;Select to insert the end of line character ($).&lt;/p&gt;</string>
238 </property> 205 </property>
239 <property name="whatsThis"> 206 <property name="whatsThis">
240 <string>&lt;b&gt;End of line: '$'&lt;/b&gt; 207 <string>&lt;b&gt;End of line: '$'&lt;/b&gt;
241 &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> 208 &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>
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>&lt;b&gt;Word boundary&lt;/b&gt; 219 <string>&lt;b&gt;Word boundary&lt;/b&gt;
256 &lt;p&gt;Select to insert the word boudary character (\b). This character is used to express the fact that word 220 &lt;p&gt;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.&lt;/p&gt;</string> 221 must begin or end at this position. E.g. '\bcat\b' matches exactly the word 'cat' while 'concatenation' is ignored.&lt;/p&gt;</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>&lt;b&gt;Non word boundary&lt;/b&gt; 232 <string>&lt;b&gt;Non word boundary&lt;/b&gt;
272 &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 233 &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
273 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> 234 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>
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>&lt;b&gt;Positive lookahead: (?=&lt;i&gt;regexpr&lt;/i&gt;)&lt;/b&gt; 245 <string>&lt;b&gt;Positive lookahead: (?=&lt;i&gt;regexpr&lt;/i&gt;)&lt;/b&gt;
288 &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. 246 &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.
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'.&lt;/p&gt;</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'.&lt;/p&gt;</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>&lt;b&gt;Negative lookahead: (?!&lt;i&gt;regexpr&lt;/i&gt;)&lt;/b&gt; 259 <string>&lt;b&gt;Negative lookahead: (?!&lt;i&gt;regexpr&lt;/i&gt;)&lt;/b&gt;
305 &lt;p&gt;Select to insert the negative lookhead brackets. Basically, negative lookhead is used to match a character only if it is not 260 &lt;p&gt;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'.&lt;/p&gt;</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'.&lt;/p&gt;</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>&lt;b&gt;Positive lookbehind: (?&amp;lt;=&lt;i&gt;regexpr&lt;/i&gt;)&lt;/b&gt; 273 <string>&lt;b&gt;Positive lookbehind: (?&amp;lt;=&lt;i&gt;regexpr&lt;/i&gt;)&lt;/b&gt;
322 &lt;p&gt;Select to insert the positive lookbehind brackets. Lookbehind has the same effect as lookahead, but works backwards. 274 &lt;p&gt;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 '(?&amp;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 '(?&amp;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; '(?&amp;lt;=[abc])q' will match a 'q' if preceded by either 'a', 'b' or 'c'.&lt;/p&gt;</string> 276 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>
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 &lt;p&gt;Select to insert the negative lookbehind brackets. Lookbehind has the same effect as lookahead, 288 &lt;p&gt;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 '(?&amp;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 '(?&amp;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; '(?&amp;lt;![abc])q' will match a 'q' only if not preceded by either 'a', 'b' nor 'c'.&lt;/p&gt;</string> 291 expression; '(?&amp;lt;![abc])q' will match a 'q' only if not preceded by either 'a', 'b' nor 'c'.&lt;/p&gt;</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>&lt;b&gt;Undo last edit&lt;/b&gt;</string> 314 <string>&lt;b&gt;Undo last edit&lt;/b&gt;</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>&lt;b&gt;Redo last edit&lt;/b&gt;</string> 321 <string>&lt;b&gt;Redo last edit&lt;/b&gt;</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>

eric ide

mercurial