4 deleted 33 characters in body
source | link

R, 24 19 1819 bytes

grep("[^2]"2,1:100,inv=T)

Try it online!

@J.Doe saved 5 bytesTry it online!

R, 24 19 18 bytes

grep("[^2]",1:100)

Try it online!

@J.Doe saved 5 bytes

R, 19 bytes

grep(2,1:100,inv=T)

Try it online!

3 deleted 1 character in body
source | link

R, 24 19 1918 bytes

grep(2"[^2]",1:100,inv=T)

Try it online!Try it online!

@J.Doe savessaved 5 bytes

R, 24 19 bytes

grep(2,1:100,inv=T)

Try it online!

@J.Doe saves 5 bytes

R, 24 19 18 bytes

grep("[^2]",1:100)

Try it online!

@J.Doe saved 5 bytes

2 added 22 characters in body
source | link

R, 2424 19 bytes

grep(x=12,1:100)[!grepl("2",xinv=T)]

Try it online!Try it online!

@J.Doe saves 5 bytes

R, 24 bytes

(x=1:100)[!grepl("2",x)]

Try it online!

R, 24 19 bytes

grep(2,1:100,inv=T)

Try it online!

@J.Doe saves 5 bytes

1
source | link