How to delete string that we don't want

Hello guys,

I have list of data that contains IP.
For example : - 10.100.100.100 | 10.100.100.100 | 10.100.100.100 | fe70::100e:100e:ba8e:100e | fe70::100e:100e:100e:100e

  • 10.100.100.100 | 10.100.100.100 | 10.100.100.100 | 10.100.100.100 | 10.100.100.100 | 10.100.100.100 | 10.100.100.100 | fe70::100e:100e:ba8e:100e | fe70::100e:100e:100e:100e

I just want to take the IP and don’t need the “fe80blabla etc”.

Any tips guys?
Thank you.

If you know the set structure of string you want to match i.e. IP Address - use Regex to get all of those matches :slight_smile:

@claudiojody

Use this regex pattern in Matches activity.

\b[^a-z][0-9.]+\b[^a-z]

Regards,
Mahesh

1 Like

it appears the error like “System.Linq.Enumerable+d__95`1”.
Do you know what is going on?

@Claudiojody

I tried in Studio with same pattern it’s working fine without any exception in Matches Activity. Can you please Share the xaml , so that we can analyse it.

Regards,
Mahesh

Sorry, I mean its not error but the output like “System.Linq.Enumerable+d__95`1”.

@claudiojody
I made some change, try with this xaml and let me know.

IPTest.xaml (9.6 KB)

Regards,
Mahesh

Thanks bro, it works.
I really appreciate it…

try using for each activity

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.