如何使用正则表达式创建自定义解析器

时间:2013-01-28 08:15:10

标签: asp.net regex

实际上我想解析对数据表的响应。这个数据表显示在gridview.here我想使用正则表达式。这该怎么做。我发表了我的回复。

 FXDLAS/D26APRJFK
 25 GROUPS AND 50 RECOMMENDATIONS RETURNED FROM USD 168.90 TO 347.80

 ---------- RECOMMENDATION 1 OF 3 IN GROUP 1 (USD 168.90)----------
 PTC       CUR                 TAX           FARE BASIS
 1 ADT     1 USD    168.90      0.00           UA21A0NP
 TOTAL   1 USD    168.90     21.92

 1   DL 322  U  26APR  LAS 1 JFK 3  950P  535A+1 E0/73H  0445
 >> FXS1 TO SELECT  >> FXZ1 TO BOOK  >> FXU1 TO BOOK AND CREATE TST
 1 TICKETS ARE NON-REFUNDABLE
 1 LAST TKT DTE29JAN13 - SEE ADV PURCHASE

 ---------- RECOMMENDATION 1 OF 2 IN GROUP 2 (USD 168.90)----------
 PTC       CUR                 TAX           FARE BASIS
 1 ADT     1 USD    168.90      0.00           OH21BE2C
 TOTAL   1 USD    168.90     21.92

 1   B6 200  O  26APR  LAS 3 JFK 5 1159P  745A+1 E0.320  0446
 >> FXS2 TO SELECT  >> FXZ2 TO BOOK  >> FXU2 TO BOOK AND CREATE TST
 1 TICKETS ARE NON-REFUNDABLE
 1 LAST TKT DTE29JAN13 - SEE ADV PURCHASE

 )> ---------- RECOMMENDATION 1 OF 1 IN GROUP 3 (USD 168.90)----------
 PTC       CUR                 TAX           FARE BASIS
 1 ADT     1 USD    168.90      0.00           OA21ERP1
 TOTAL   1 USD    168.90     21.92

 1   AA1936  O  26APR  LAS 1 JFK 8 1030A  635P   E0.738  0505
 >> FXS3 TO SELECT  >> FXZ3 TO BOOK  >> FXU3 TO BOOK AND CREATE TST
 1 TICKETS ARE NON-REFUNDABLE
 1 LAST TKT DTE29JAN13 - SEE ADV PURCHASE
 1 FARE VALID FOR E TICKET ONLY

** END OF DISPLAY **
>

0 个答案:

没有答案