cl--ppcre multi string

Discussion of Common Lisp
Post Reply
pseudo-cat
Posts: 6
Joined: Thu Sep 02, 2010 3:53 pm
Location: Russia

cl--ppcre multi string

Post by pseudo-cat » Thu Sep 02, 2010 4:30 pm

Whether method to scan multi strings without partion that to separate strings?
eg

Code: Select all

TE> (scan-to-strings ".*" "ab
cd")
"ab"
#()
but i want get "ab\ncd"

ramarren
Posts: 613
Joined: Sun Jun 29, 2008 4:02 am
Location: Warsaw, Poland
Contact:

Re: cl--ppcre multi string

Post by ramarren » Thu Sep 02, 2010 10:47 pm

You can use the "(?s)" regex modifier like in Perl or create a scanner with CREATE-SCANNER and set the single-line-mode key argument to true.

pseudo-cat
Posts: 6
Joined: Thu Sep 02, 2010 3:53 pm
Location: Russia

Re: cl--ppcre multi string

Post by pseudo-cat » Fri Sep 03, 2010 6:45 am

thnks, it works

Post Reply