Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

How to copy between 2 strings

soncoku
9 - Comet

Hey everyone

I have a column where each row has :

a link , and IP a username a password and port number

they are only separated by spaces

 

I need a regex formula that would copy the text between these 2 exact words:
IP:   xx.xx.xx.xxx user

everything that is between IP and user.

 

Any ideas? 

22 REPLIES 22
atcodedog05
22 - Nova
22 - Nova

Hi @soncoku 

 

Use regex tool parse mode

IP:   (.*) user

 

soncoku
9 - Comet

soncoku_0-1604912121181.png

It's  coming out empty 😕

@atcodedog05 

 

atcodedog05
22 - Nova
22 - Nova

Hi @soncoku 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1604912149087.png

 

Workflow:

atcodedog05_1-1604912173140.png

 

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

atcodedog05
22 - Nova
22 - Nova

Please check this if also doesnt work. Please share a sample of the data 1 or 2 ips. You can mask 1or2 numbers in them.

soncoku
9 - Comet

http://www.xwebsite.net/<br>ip: 192.168.1.130 user: user222 password: passss@w port: 21

@atcodedog05 

atcodedog05
22 - Nova
22 - Nova

@soncoku 

 

The data is totally different here is the updated workflow.

 

You can use one of them

soncoku
9 - Comet

@atcodedog05  the formula works . Thanks 🙂

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @soncoku 

 

Cheers and Happy Analyzing 😀

messi007
15 - Aurora
15 - Aurora

Dear @soncoku,

 

Please check the regEx below

 

messi007_1-1604912881986.png

 

Attached the workflow 🙂

 

Hope that helps!

 

Regards,

Labels