Home Download Buy Blog Forum Support

Selecting multiple line endings

Selecting multiple line endings

Postby HAWX1993 on Mon Jan 16, 2012 9:31 pm

Hello!
I have been trying to figure out how to select all line endings at the same time no matter if the ending is .com or .org. I have been doing this for the last few hours without any luck. If somebody could help a little bit, I would really appreciate :)
Image
HAWX1993
 
Posts: 3
Joined: Mon Jan 16, 2012 9:12 pm

Re: Selecting multiple line endings

Postby quarnster on Mon Jan 16, 2012 9:40 pm

A regular expression search for this perhaps?
Code: Select all
(?<=[a-z])\.[\.a-z]+$
quarnster
 
Posts: 389
Joined: Tue Nov 29, 2011 11:34 am

Re: Selecting multiple line endings

Postby HAWX1993 on Mon Jan 16, 2012 9:44 pm

Thank You for helping, however, I'm a regular user and complex things like that just don't make sense. Could You please clarify? ;)

UPDATE

Thanks mate, I figured it out. Thanks for the help, wish You all the best! :)
Last edited by HAWX1993 on Mon Jan 16, 2012 9:48 pm, edited 1 time in total.
HAWX1993
 
Posts: 3
Joined: Mon Jan 16, 2012 9:12 pm

Re: Selecting multiple line endings

Postby C0D312 on Mon Jan 16, 2012 9:47 pm

Open up the find panel, command/control+F. The leftmost button in the find panel is "Regex." If you turn this on, you can paste quarnster's regular expression into the find panel. Then just press find all.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Selecting multiple line endings

Postby HAWX1993 on Mon Jan 16, 2012 9:50 pm

C0D312 wrote:Open up the find panel, command/control+F. The leftmost button in the find panel is "Regex." If you turn this on, you can paste quarnster's regular expression into the find panel. Then just press find all.


Hey man, yes I did just that and everything works. Thanks for the help also, wish You all the best!
HAWX1993
 
Posts: 3
Joined: Mon Jan 16, 2012 9:12 pm

Re: Selecting multiple line endings

Postby jps on Mon Jan 16, 2012 10:37 pm

If you just want to select every line, you can select the lines of interest, and then use the Selection/Split into Lines menu item.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Selecting multiple line endings

Postby RBloeth on Tue Jan 17, 2012 3:05 pm

A very nice and handy way of accomplishing this: COLUMN-SELECT a column in all the lines (right-shift + right mouse button), then press the "end" key on your keyboard. While pressing the shift key you can now also select the trailing x characters by pressing the left arrow button x times!
RBloeth
 
Posts: 14
Joined: Tue Dec 06, 2011 3:03 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 32 guests