Hi,
Need to get only vowels from the below mentiond sentence using regex expression
“Hi Mr.x welcome to the new team”
Hi,
Need to get only vowels from the below mentiond sentence using regex expression
“Hi Mr.x welcome to the new team”
Hi @nirmalad123
[aeiouAEIOU]
vowelMatches = System.Text.RegularExpressions.Regex.Matches("Hi Mr.x welcome to the new team", "[aeiouAEIOU]")
Hi @nirmalad123
Try this
Input="Hi Mr.x welcome to the new team"
Output=System.Text.RegularExpressions.Regex.Match(Input, "[aeiouAEIOU]").Value
Hope it helps!!
Hi @nirmalad123
Try this
Input="Hi Mr.x welcome to the new team"
str_vowels=String.Join("", System.Text.RegularExpressions.Regex.Matches(Input.ToString, "[aeiouAEIOU]").Cast(Of Match)().Select(Function(m) m.Value).ToArray())
Hope this helps!!
Thanksfor your Answer
Thanks for your Answer
System.Text.RegularExpression.Regex.Match(Input_Variable,“[aeiouAEIOU]”).value
Cheers!!
Hi @nirmalad123
How about this
System.Text.RegularExpressions.Regex.Matches(inputString, “[AEIOUaeiou]”)
String.Join(“”, vowels.Cast(Of Match).Select(Function(m) m.Value))
You can simply try this
Input="Hi Mr.x welcome to the new team"
str_vowels=System.Text.RegularExpressions.Regex.Replace(Input,"[^aeiouAEIOU]","")
Cheers!!
You can try this way even the your vowels are small letters or capital letters it work
strInput = “Hi Mr.x welcome to the new team”
System.Text.RegularExpressions.Regex.Replace(str_Input,"[^aeiou|AEIOU]","")
For the reference you can see the screenshot
Hi @nirmalad123
Please use the below regex in an assign activity so that you will get only the vowels as output
Input="Hi Mr.x welcome to the new team"
str_vowels=System.Text.RegularExpressions.Regex.Replace(Input,"[^aeiouAEIOU]","")
Regards
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.