cocoro 0 Posted November 18, 2013 Report Share Posted November 18, 2013 i have this lines:216.250.7.197:8090213.181.73.145:80217.8.57.245:3128212.3.190.77:808027.24.158.153:81221.176.189.14:8080202.43.188.11:8080202.96.136.169:2121201.65.114.212:312841.130.195.107:3128201.49.209.148:3128202.43.188.199:8080201.242.11.102:808041.164.23.162:808041.32.16.85:808042.120.20.120:312846.13.10.218:312841.78.27.237:808041.78.27.141:808042.121.117.153:808046.29.78.20:3128 and i need to make a variable from 27.24.158.153:81 to 46.13.10.218:3128how can i make this with regex? Quote Link to post Share on other sites
Steve 30 Posted November 18, 2013 Report Share Posted November 18, 2013 Not sure I understand the question? Quote Link to post Share on other sites
cocoro 0 Posted November 18, 2013 Author Report Share Posted November 18, 2013 ...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... Quote Link to post Share on other sites
k1lv9h 76 Posted November 18, 2013 Report Share Posted November 18, 2013 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 Quote Link to post Share on other sites
cocoro 0 Posted November 24, 2013 Author Report Share Posted November 24, 2013 thanks for help i will try:) Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.