Hi,
What I'm attempting to do is find the first non-0 in the string of numbers.
The following code should, if I'm reading the help screen correctly, return 1
as the position and 1 as the length. But, for the life of me I can't get that
answer. It seems that the '^' modifier is disregarded.
Any help out there?
TIA,
____ _ ____ ____ _____
| _ \ / \ / ___) __ | ___)(_ _) Don Schullian
|____//_/ \_\(____/\__/|_| |_| www.DASoftVSS.com
___________________________________ www.basicguru.com
Vertical Software Solutions
FUNCTION PBMAIN ()
DIM D AS LOCAL STRING
DIM L AS LOCAL LONG
DIM N AS LOCAL STRING
DIM P AS LOCAL LONG
N = "220923"
D = "[^0]"
REGEXPR D IN N TO P, L
PRINT N
PRINT P, L
WAITKEY$
END FUNCTION
____ _ ____ ____ _____
| _ \ / \ / ___) __ | ___)(_ _) Don Schullian
|____//_/ \_\(____/\__/|_| |_| www.DASoftVSS.com
___________________________________ www.basicguru.com
Vertical Software Solutions