Jump to content


Photo

I need help get lines from x to y character regex


  • Please log in to reply
5 replies to this topic

#1 cocoro

cocoro

    Newbie

  • Members
  • Pip
  • 3 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 18 November 2013 - 02:55 AM

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?



#2 Steve

Steve

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 259 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 18 November 2013 - 06:43 AM

Not sure I understand the question?



#3 cocoro

cocoro

    Newbie

  • Members
  • Pip
  • 3 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 18 November 2013 - 10:15 AM

...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? select from a specified line to another and make that block text a variable...



#4 uniquebot

uniquebot

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1166 posts
  • OS:Windows 8
  • Total Memory:3Gb
  • Framework:v4.0
  • License:Professional Edition

Posted 18 November 2013 - 10:57 AM

You mean you want the Variable to show this:

 

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

 

Mmm. I've done something similar to this just a few days ago and now you've given me an idea of an improvement to make a "match making" bot. Add all List Items inbetween the first input and the last. That's your clue. See if you can code it now.


Checkout my Joint venture Proposal here:
http://www.ubotstudi...ing-signup-bot/

And read my Profile, whatever is available of it. :)

#5 k1lv9h

k1lv9h

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 299 posts
  • LocationPennsylvania
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 18 November 2013 - 11:06 AM

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



#6 cocoro

cocoro

    Newbie

  • Members
  • Pip
  • 3 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 24 November 2013 - 03:41 AM

thanks for help i will try:)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users