For eg of we have text like
\n 154765 Om Sairam\n Student Information
Need to extract name (Om Sairam)from that complete text using regular expression
By using this,getting only name (Om).Need to get sai ram also.
System.Text.RegularExpressions.Regex.Match(variablename,“(?<=\d{6}\s)(\S+)”).ToString
for example,we have2 students information.
For 1st student by using this
System.Text.RegularExpressions.Regex.Match(variablename,“(?<=\d{6}\s)(\S.+)”).ToString
we are getting desired value as Om Sairam.For 2nd student name how can we achieve?
123456 Om Sairam\n Student Information\n \n 1239587 Nama Shivaya\n Student Information\n