08-27-04 11:17 PM
Coz wrote on 27 aug 2004 in microsoft.public.inetserver.asp.general:
> might be a faster way, but you could loop and break the string up..in
> this example, into 75 char lines:
>
> x=0
> str=""
> Do while x<=len(str)
> str=str & ">" & Mid (str, x, x+75) & vbCrLf
> x=x+75
> Loop
Not very nice to break the words.
Using jscript, try this:
s += ' '
s = s.replace(/(.{1,70}) /g,"> $1\n")
or vbscript :
Set regEx = New RegExp
regEx.Pattern = "(.{1,70}) "
regEx.Global = True
s = regEx.Replace(s&" ","> $1" & vbCrLf)
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)
[ Post a follow-up to this message ]
|