Sheriff

Sheriff

  • NA
  • 15
  • 559

Pick up certain values from Richtext box1 to Datagridview C#

Mar 30 2018 11:44 AM
Hello Expert C#,
 
i have a Richtextbox1 with 100 lines. it is mixed with alphanumberic lines.
i only wanted lines which is meeting following parameters.
 
1st 3 letters are Numeric
4th letter should be dash "-"
from 5th to 12 letters are numeric
from 13th to 18 letter are alphabet
19th letter is forward slash "/"
 
example lines - 789-12123434LHRMUC/
 
i only need lines to Richtexbox2 which meet above parameters.
 
kindly help to sort this.

Answers (10)