带有正则表达式的子字符串

时间:2018-07-09 09:07:46

标签: c# regex

我有这样的数据。

"Medical Advice: • Avoid cigarette smoke. • Nasal irrigation with normal saline 3-4 times a day after the surgery. • Patient's questions were answered. Medication Notes: Recommend the use of OTC Afrin- 2 sprays in both nostrils BID for 5 days then discontinue 9start after surgery). Schedule Follow-up: after scheduled surgery. Type of follow-up visit: post-op follow-up. Comments: [03/06/2018 4:21 PM Angela Cruz, CCMA]. Impression: We discussed the nasal fracture and they can consider a closed nasal fracture reduction. Treatment alternatives and respective risks were discussed including surgery and continued observation.The risks and benefits of closed nasal fracture reduction were discussed including: bleeding, infection, nasal obstruction, cosmetic deformity, and change in appearance. Questions regarding surgery were discussed in detail and concerns were addressed. Informed consent was obtained and surgery will be scheduled in the near future."

并且我想在计划手术后从获取所有数据

我使用了正则表达式:

Match match = Regex.Match(PPtext, @"after\s*scheduled\s*surgery\s*(.*?)", RegexOptions.IgnoreCase);

但是它只给我after scheduled surgery

如何获取这些关键字之后的所有数据?

0 个答案:

没有答案
相关问题