Sublime Forum

Move cursor to beggining and select

#1

Hello,
Is there a possibility to set cursor in any place, and then select text between it and the beginning of line? I have something like this:

xxxccxxxxddx : $(’#yyy’).val(),
xccx : $(’#yyy’).val(),
and would like to remove everthing before “:” in each line.

Thank you
Piotr

0 Likes

#2

You could do a regex search for

^([^:]*)(:)

and replace with

${2}
1 Like

#3

I will try, thanks for help :slight_smile:

0 Likes