I am trying to find a solution to this simple Perl code using the CL-PPCRE Library:
if (/\p{Space}/){
print "This string has some spaces\n";
}
I am a newbie to CL-PPCRE and tried:
(scan "\\p{\\#Space}" "The String has some white spaces")
; I got an error saying property #/Space doesn't exists.
How can I execute an equivalent?
The perl regexp
/\p{Space}/
matches more than just " ". cf \p{} docsOne approach is to just use the
\s
expression:To use the whole unicode Space class:
See Unicode properties in the CL-PPCRE docs.