@bairui
thanks for reminding me .... i've probably to many anchors in the brain activated.
A fool and his strings are soon parted.
> (regex {^\d{3}$} "12343243242")
nil
That is the one i've been looking for.
Search found 28 matches
- Sat Mar 22, 2014 7:42 am
- Forum: newLISP in the real world
- Topic: regex \\d{n} problem
- Replies: 9
- Views: 4665
- Thu Mar 20, 2014 6:43 pm
- Forum: newLISP in the real world
- Topic: regex \\d{n} problem
- Replies: 9
- Views: 4665
Re: regex \\d{n} problem
odd, thought i checked the longer seq as well ... to many hours today.
Thanks for testing.
Heiko
Thanks for testing.
Heiko
- Thu Mar 20, 2014 5:12 pm
- Forum: newLISP in the real world
- Topic: regex \\d{n} problem
- Replies: 9
- Views: 4665
regex \\d{n} problem
Hello, i'am trying to figure out the logic behind the newlisp regex system. > (regex "\\d{3}" "12343243242") ("123" 0 3) I would consider this as not correct, as i understand that \d{3} shall hit "exactly" three digits, only three digits in number and term and not the first three found. Perl's PCRE ...