generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Find and replace - New line?

Previous Thread :: Next Thread 
Scrabble11 is not online. Scrabble11
Joined: 21 Sep 2011
Total Posts: 6
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
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
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
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
07 Nov 2011 12:37 PM
Owait, I read that wrong.

I don't think you can.
Report Abuse
TheMyrco is not online. TheMyrco
Joined: 13 Aug 2011
Total Posts: 15105
07 Nov 2011 12:46 PM
CTRL + H
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
07 Nov 2011 01:09 PM
I think he means replacing >1 line with something.
Report Abuse
Scrabble11 is not online. Scrabble11
Joined: 21 Sep 2011
Total Posts: 6
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
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
07 Nov 2011 01:39 PM
Couldn't you gsub each new line with a ,?
Report Abuse
Scrabble11 is not online. Scrabble11
Joined: 21 Sep 2011
Total Posts: 6
07 Nov 2011 01:46 PM
Whats a new represented as in Lua, ^P? Alt+010
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
07 Nov 2011 02:10 PM
I would use \n if I was confronted with this problem.
Report Abuse
NXTBoy is not online. NXTBoy
Joined: 25 Aug 2008
Total Posts: 4533
07 Nov 2011 02:19 PM
Replace `\n` with `, `.
Report Abuse
NecroBumpist is not online. NecroBumpist
Joined: 12 Sep 2010
Total Posts: 4198
07 Nov 2011 04:51 PM
local s = "Bob\
Tom";

print(s:gsub("\10", ", "))
Report Abuse
ENET is not online. 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
dapbetatester is not online. dapbetatester
Joined: 18 Jan 2010
Total Posts: 1321
08 Nov 2011 05:52 AM
string.byte(",")
Report Abuse
dapbetatester is not online. dapbetatester
Joined: 18 Jan 2010
Total Posts: 1321
08 Nov 2011 05:54 AM
string.char*
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image