String array

Hi all am holding the string array value as mentioned here.
{“BE”, “MS”, “PHD”, “BSC”, “BBA”, “BED,MSC”, “MSC,PhD”, “MD”, “MS,PHD”}
if my user input contains eg. James Watson BED,MSC
i need to compare this input with string array & want to extract the matched value from it.
how can i use work on this need idea.
i used contains & endswith in both case match is not working in perfect manner.


You want to extract the entire value James Watson BED,MSC?

containsAny.xaml (5.2 KB)

@naveen19 Try this.!

strArr.Any(function(x) inputStr.ToLower.Trim.Contains(x.ToLower.Trim))


1 Like

want to extract the degree alone from the name

How to get these matched value? from workflow

@kadiravan_kalidoss how to get matched value from ur workflow! i need to pass it as out variable

well you can use Matches activity

Sequence.xaml (5.1 KB)
you can check this worflow for reference

containsAny.xaml (5.1 KB)

Check this… @naveen19

1 Like

Hi @naveen19,

Try this xaml
Main.xaml (6.5 KB)

1 Like

@aanandsanraj its working fine i couldn’t mark both of ur answer solution :slight_smile:

@kadiravan_kalidoss how can i get length of degree
eg. James Watson BED,MSC
now i need to get length as (BED,MSC) means 2

containsAny.xaml (6.1 KB)

Updated…! @naveen19


1 Like

Thank you so much :slight_smile:

1 Like

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