|
| 07 Nov 2011 12:30 PM |
How do you signal a new line in find and replace? As in.
Bob Tom
Could be found and replaced with
Bob, Tom,
|
|
|
| Report Abuse |
|
|
|
| 07 Nov 2011 12:36 PM |
1) move your insertion marker to the start of line "Tom" 2) Press Backspace (or Return if you're stupid) |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2011 12:37 PM |
Owait, I read that wrong.
I don't think you can. |
|
|
| Report Abuse |
|
|
TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
| |
|
|
| 07 Nov 2011 01:09 PM |
| I think he means replacing >1 line with something. |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2011 01:38 PM |
| Yes I do. I have a list of all the words in the dictionary but want to change it to , rather then a new line. |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2011 01:39 PM |
| Couldn't you gsub each new line with a ,? |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2011 01:46 PM |
| Whats a new represented as in Lua, ^P? Alt+010 |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2011 02:10 PM |
| I would use \n if I was confronted with this problem. |
|
|
| Report Abuse |
|
|
NXTBoy
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 4533 |
|
| |
|
|
| 07 Nov 2011 04:51 PM |
local s = "Bob\ Tom";
print(s:gsub("\10", ", ")) |
|
|
| Report Abuse |
|
|
ENET
|
  |
| Joined: 01 Jan 2010 |
| Total Posts: 4820 |
|
|
| 07 Nov 2011 08:13 PM |
local s = "Bob\ Tom";
print(s:gsub(string.char(10), ", ")); Does same as NecroBumpist.... Just incase you rather have the function. I would use necroBumpist's though because it saves text length. |
|
|
| Report Abuse |
|
|
| |
|
| |
|