Sublime Forum

Help with regex (Aligntab)

#1

Hello,

I’m new to regex and having a hard time with my alignment using aligntab. I’ve spent 2 hours trying to make it work. I have a doc with over 600 lines. looks something like this.

10.0.0.0 Random text 255.255.255.0
10.1.10 random txt 255.255.252.0
10.2.0 random txt 255.255.0.0

All I’m tying to do is align the last portion(subnet mask) to the right spacing doesn’t really matter just need them to be align. Hope ya’ll can help. Basically I want anything with 255.255.x.x to be align on the right side of the “random text”

0 Likes

#2

Maybe just use SPACE/r or just SPACE.

SPACE means the space char… just because it’s not visible on this forum.

image
image

0 Likes

#3

appreciate the response. that don’t work in my case the. maybe an sample from the file might help.

0 Likes

#5

\d+\.\d+\.\d+\.\d+|-(?!\s+\d+)

1 Like