Hi!
Having some trouble with regular expressions... It seems that d and D aren't working for me:
> (find "d+" "3432" 0) $0
nil
"433"
> (find "D+" "XC3432" 0) $0
nil
"433"
> (find "[0-9]+" "3432" 0) $0
0
"3432"
I'll limp along with "[0-9]" for now, but it would be nice to know what's going on with the others. According to the PCRE manpage, they should work.
Using newLISP v.10.4.5 on Win32 IPv4/6 libffi from the most recent installer, running on XP64.
Thanks!
Try doubling the slashes?
Quote from: "cormullion"
Try doubling the slashes?
Feetfish! I thought I had tried that and it didn't work!
> (find "\d+" "3432" 0) $0
0
"3432"
> (find "\D+" "XC3432" 0) $0
0
"XC"
But it does work. Thanks Cormullion!