有没有正则表达式模式来匹配下面类似reStructuredText的文本中的标题?困难在于等号的数目必须等于标题的长度。在
Some basic text.
=========
One Title
=========
For titles the numbers of sign `=` must be equal to the length of the text title.
=============
Another title
=============
And so on...
Tags:
要支持full syntax for section titles,可以使用^{} package :
输出:
^{pr2}$搜索^{cd1>}的匹配项。如果找到匹配,检查第一组、第二组和第三组的长度是否相同。如果是,title是第二组的内容。
相关问题 更多 >
编程相关推荐