A dragon is here. Take this sword. Good Luck. bye
I need it to look like this:
A dr ag on i s he re . Ta ke t hi s sw or d. Go od L uc k. by e
I have a feeling I just need a simple loop, but I'm not sure what to use.
Posted 01 June 2012 - 12:44 PM
A dragon is here. Take this sword. Good Luck. bye
A dr ag on i s he re . Ta ke t hi s sw or d. Go od L uc k. by e
Posted 01 June 2012 - 12:51 PM
Posted 01 June 2012 - 01:07 PM
A Dr ag on i s he re . Ta ke t hi s sw or d. He c an b e fo un d in t he ca ve t o th e ri gh t. Go od l uc k. Be c ar ef ul .
Posted 01 June 2012 - 01:12 PM
var=
(
A
dragon is here.
Take this
sword.
Good Luck.
bye
)
MsgBox % RegExReplace(RegExReplace(var,".{2}(?!$)", "$0`n"),"\v{2,}","`n")
Posted 01 June 2012 - 01:14 PM
v = ( A dragon is here. Take this sword. Good Luck. bye ) Msgbox % RegExReplace( RegExReplace( v, "(..)", "$1`r`n"), "\n")
Posted 01 June 2012 - 01:16 PM
Posted 01 June 2012 - 01:19 PM
text=
(join`r`n
A
dragon is here.
Take this
sword.
Good Luck.
bye
)
text:=RegExReplace(text,"\r?\n", " ") ; comment this to see the difference
MsgBox % RegExReplace(text,"(.{2})", "$1`n") So you could try to replace all `r`n with a space and THEN wrap it to get the results you need.