I have this string
![]()
It can be of multiple lengths, but I just want to skip the First word and add the remaining to Last Name.
The string can have more than 2 words.
Is there an easier way to do that?
Thanks
I have this string
![]()
It can be of multiple lengths, but I just want to skip the First word and add the remaining to Last Name.
The string can have more than 2 words.
Is there an easier way to do that?
Thanks
Try this
lastName = String.Join(" ", inputString.Split(" "c).Skip(1))
Cheers!!
Try this:
strOutput= String.Join(" ",strInput.Split(" ").Skip(1).ToArray())
Thanks,
Ashok ![]()
Hi,
I have an input string in_strLastName and another one strLastName

I want to check that if strLastName contains any of the words from in_strLastName
Contains is returning false:

Can you try the below
containsWord = strLastName.Split(" "c).Any(Function(word) in_strLastName.Split(" "c).Contains(word))
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.