Discussion of Common Lisp
-
pseudo-cat
- Posts: 6
- Joined: Thu Sep 02, 2010 3:53 pm
- Location: Russia
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:
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
Post
by pseudo-cat » Fri Sep 03, 2010 6:45 am
thnks, it works