is it possible to get a multi-line string in classic asp (I think vbscript is a language)?
I need a multi-line string, like in python or groovy:
def str = "" hello I am a multiline string ""
I searched a lot, but did not find a solution.
Workarounds are also welcome.
BTW: I had the same problem in javascript and it was solved in time with a function stored in a variable. This function had a multi-line comment in it, so I could get around everything except the comment using a regular expression.
Something like that:
var multilinestr = function() {
}
And after Regex, I got a line containing:
hello
I am a multiline
string
Thanks.
Edit:
I think I missed a very important point. My client - you use something like a "preprocessor" for your scripts. It looks like this:
Dim str
str = "<%std_text%>"
" " "<% std_text% > " , .
, " vbNewline" .
, " " :
Dim str
str = "hello
I am a multiline
string"
, "" ?
- (groovy):
def multistr = """<%std_text%>"""
" ":
def multistr = """hello
I am a multiline
string"""
!