Hi Developers,
Greetings… I request a solution, Variable consists of 15 digits number, I want to read first 4 digit, then next 5 digit & rest. how to segrecate read those value.
Hi Developers,
Greetings… I request a solution, Variable consists of 15 digits number, I want to read first 4 digit, then next 5 digit & rest. how to segrecate read those value.
012345678911135.
Hi @Majunu09,
Have you tried using Substring?
"First 4 digits: "+ str_Variable.Substring(0,4)+vbNewLine+
"Next 5 digits: "+str_Variable.Substring(4,5)+vbNewLine+
"Rest of digits: "+str_Variable.Substring(9)
Best,
Daniela
@Daniela_Colina ,
Hi Thank you for the reply, I am getting this value
this first 4: 123.
next 5 digit : 56789
rest value coming good.
@ppr , Whenever I try regular expression, I get confuse can you explain me. how to do it.
Pattern: \b(\d{4})(\d{5})(\d+)\b
refer also to the linked CheatSheet for some more help / information
If you want to learn Regex - check out my Regex MegaPost particularly Section 5 - Learn Regex in 60mins
Essentially:
“\d” means a digit.
The curly brackets mean “how many times”. {5} = 5 times exactly
The + symbol means “1 or unlimited times”
The curved brackets ( ) simply break up the pattern into groups.
\b means a word barrier - like the start or end of a word.
Regex is a must for automation projects, and also to approve UiARD certification. Worth the effort learning about it
can you share the xaml.file?
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.