naveen19
(Learner)
March 11, 2020, 5:26am
1
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.
Thanks
Naveen
naveen19:
{“BE”, “MS”, “PHD”, “BSC”, “BBA”, “BED,MSC”, “MSC,PhD”, “MD”, “MS,PHD”}
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))
Thanks!
1 Like
naveen19
(Learner)
March 11, 2020, 5:43am
4
want to extract the degree alone from the name
naveen19
(Learner)
March 11, 2020, 5:46am
5
Pradeep_Shiv:
James Watson BED,MSC
How to get these matched value? from workflow
naveen19
(Learner)
March 11, 2020, 5:46am
6
@kadiravan_kalidoss how to get matched value from ur workflow! i need to pass it as out variable
well you can use Matches activity
@naveen19
Sequence.xaml (5.1 KB)
you can check this worflow for reference
@naveen19
Cheers
Hi @naveen19 ,
Try this xaml
Main.xaml (6.5 KB)
1 Like
naveen19
(Learner)
March 11, 2020, 6:23am
11
@aanandsanraj its working fine i couldn’t mark both of ur answer solution
naveen19
(Learner)
March 11, 2020, 7:00am
12
@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
Thanks!
1 Like
system
(system)
Closed
March 14, 2020, 7:25am
15
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.