en:regexminimal [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:regexminimal

## RegexMinimal (Statement)

### Format

regexminimal ( boolean_expr )
regexminimal boolean_expr

### 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

    a$ = "abcdefgabcdefgabcdefg"
    regexminimal false
    print midx(a$,"e.*g")
    regexminimal true
    print midx(a$,"e.*g")

Displays

    efgabcdefgabcdefg
    efg

### See Also

EditVisible, Include, RegexMinimal, Ostype, System, Version

### History

1.1.2.7 | New to Version

en/regexminimal.txt · Last modified: 2014/08/06 20:27 by admin