Fhduibtu1456
Xhfdjijhfg47844
Gfjikkfj3688
how to find value u, g, j
please solve issue & by using string manipulation
Fhduibtu1456
Xhfdjijhfg47844
Gfjikkfj3688
how to find value u, g, j
please solve issue & by using string manipulation
Hi @Ninad_Falke
Try this:
Input="Fhduibtu1456"
Output= System.Text.RegularExpressions.Regex.Match(Input,"(?<=u)\d+").Value
Input="Xhfdjijhfg47844"
Output= System.Text.RegularExpressions.Regex.Match(Input,"(?<=g)\d+").Value
Input="Gfjikkfj3688"
Output= System.Text.RegularExpressions.Regex.Match(Input,"(?<=j)\d+").Value
If you want it in single expression
Input="Fhduibtu1456
Xhfdjijhfg47844
Gfjikkfj3688"
Output= System.Text.RegularExpressions.Regex.Match(Input,"(?<=u|g|j)\d+").Value
If your letters arenβt fixed then
Input="Fhduibtu1456
Xhfdjijhfg47844
Gfjikkfj3688"
Output= System.Text.RegularExpressions.Regex.Match(Input,"\d+").Value
can please by using string manipulation
Hi @Ninad_Falke
Try this
New String(Input1.Reverse().SkipWhile(Function(c) Not Char.IsLetter(c)).Take(1).ToArray())
Hope this helps!!
Use the IndexOf method to find the first occurrence of βuβ, βgβ, and βjβ in the string:
a = inputString.IndexOf(βuβ)
b = inputString.IndexOf(βgβ)
c = inputString.IndexOf(βjβ)
This will return the index of the 1st occurrence
Then use the below one
Assign uValue = inputString.Substring(a + 1, 1)
Assign gValue = inputString.Substring(b + 1, 1)
Assign jValue = inputString.Substring(c + 1, 1)
This is how you can use String manipulation for the above scenario @Ninad_Falke
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.