Jump to content
UBot Underground

I need help get lines from x to y character regex


Recommended Posts

i have this lines:

216.250.7.197:8090
213.181.73.145:80
217.8.57.245:3128
212.3.190.77:8080
27.24.158.153:81
221.176.189.14:8080
202.43.188.11:8080
202.96.136.169:2121
201.65.114.212:3128
41.130.195.107:3128
201.49.209.148:3128
202.43.188.199:8080
201.242.11.102:8080
41.164.23.162:8080
41.32.16.85:8080
42.120.20.120:3128
46.13.10.218:3128
41.78.27.237:8080
41.78.27.141:8080
42.121.117.153:8080
46.29.78.20:3128

 

and i need to make a variable from 27.24.158.153:81 to 46.13.10.218:3128

how can i make this with regex?

Link to post
Share on other sites

Hi,

 

Code:

set(#selected, $replace($find regular expression($replace("216.250.7.197:8090
213.181.73.145:80
217.8.57.245:3128
212.3.190.77:8080
27.24.158.153:81
221.176.189.14:8080
202.43.188.11:8080
202.96.136.169:2121
201.65.114.212:3128
41.130.195.107:3128
201.49.209.148:3128
202.43.188.199:8080
201.242.11.102:8080
41.164.23.162:8080
41.32.16.85:8080
42.120.20.120:3128
46.13.10.218:3128
41.78.27.237:8080
41.78.27.141:8080
42.121.117.153:8080
46.29.78.20:3128", $new line, "[NL]"), "(27.24.158.153:81.+|\\r\\n+46.13.10.218:3128)"), "[NL]", $new line), "Global")

Kevin

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...