User Tools

Site Tools


en:regexminimal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:regexminimal [2016/08/12 12:27]
admin
en:regexminimal [2020/02/28 10:46]
Line 1: Line 1:
-===== RegexMinimal (Statement) ===== 
  
-==== Format ==== 
-**regexminimal** ( [[booleanexpressions|boolean_expression]] )\\ 
-**regexminimal** [[booleanexpressions|boolean_expression]] 
- 
-==== Description ==== 
-The underlying Regular Expression library (QRegExp) does not support the use of a '?' to define if a repetition is greedy or lazy, but this property may be set for each RegExp use.  The **regexminimal** statement will set the behavious for all statements using regular expressions until the termination of the program.  The default value is //false// specifying the "greedy" nature. 
- 
-====Example==== 
-<code> 
-a$ = "abcdefgabcdefgabcdefg" 
- 
-regexminimal false 
-print midx(a$,"e.*g") 
- 
-regexminimal true 
-print midx(a$,"e.*g") 
-</code> 
-Displays 
-<code> 
-efgabcdefgabcdefg 
-efg 
-</code> 
- 
-==== See Also ==== 
-{{page>en:start#Other Statements and Functions&noheader}} 
- 
-==== History ====  
-|1.1.2.7|New to Version| 
en/regexminimal.txt ยท Last modified: 2020/02/28 10:46 (external edit)