请教各位大虾:
如何在PowerGREP环境下用正则表达式搜索若干段落中的内容?
搜索段落内的内容似乎容易实现,而搜索段落间的内容却不得要领。
可能问题出在如何检索换行符的问题。
比如下面的语料,我想搜索两个"<P>"之间的段落内容,使用:
\<P\>.*?\<P\>
no hit returned.
使用:
\<P\>(.*?(\r\n)*)*)\<P\>
好像也不行。
谢谢各位!
<P>
Full-size image (46K)
Fig. 2.?Screenshot of the simulated chatting program. At this point in the trial, the participant is about to verify whether the simulated interlocutor’s sentence (the highlighted sentence, which means ‘the teacher hits the monk’) matches the picture in the top-right corner, by clicking on the NEE (NO) or JA (YES) button. After verification, a new picture appears for the participant to describe, the text box above the JA and NEE buttons changes so as to allow typed input, and the ZEND (SEND) button becomes clickable. The information in the lower-right corner says the user is ‘connected’.
<P>
如何在PowerGREP环境下用正则表达式搜索若干段落中的内容?
搜索段落内的内容似乎容易实现,而搜索段落间的内容却不得要领。
可能问题出在如何检索换行符的问题。
比如下面的语料,我想搜索两个"<P>"之间的段落内容,使用:
\<P\>.*?\<P\>
no hit returned.
使用:
\<P\>(.*?(\r\n)*)*)\<P\>
好像也不行。
谢谢各位!
<P>
Full-size image (46K)
Fig. 2.?Screenshot of the simulated chatting program. At this point in the trial, the participant is about to verify whether the simulated interlocutor’s sentence (the highlighted sentence, which means ‘the teacher hits the monk’) matches the picture in the top-right corner, by clicking on the NEE (NO) or JA (YES) button. After verification, a new picture appears for the participant to describe, the text box above the JA and NEE buttons changes so as to allow typed input, and the ZEND (SEND) button becomes clickable. The information in the lower-right corner says the user is ‘connected’.
<P>