我試圖用Notepad ++編寫正則表達式,以便如果一行以' - '開頭,表達式會將該行追加到緊接其前一行的那一行,該行還包含冒號':'。 見下面的例子:自定義正則表達式
3) In the query dialog select:
- Query Source: 'blah'
- Client: 'blah'
- From Date: 30/09/2012 00:00:00
- To Date: 01/01/2014 00:00:00
4) Enter the query terms as follows:
- 'URL'
- 'Contains'
- 'google'
Turns into:
3) In the query dialog select: Query Source: 'blah' - Client: 'blah' - From Date: 0/09/2012 00:00:00 - To Date: 01/01/2014 00:00:00
4) Enter the query terms as follows: - 'URL' - 'Contains' - 'google'
'我trying' - 看起來並不像它迄今。 – devnull
正則表達式不要操縱字符串......並且你到目前爲止嘗試過嗎? –