請考慮下面的文字:java的正則表達式,直到某個詞/文本/字符
That is, it matches at any position that has a non-word character to the left of it, and a word character to the right of it.
我怎樣才能得到以下結果:
That is, it matches at any position that has a non-word character to the
這就是一切,直到left
什麼如何將這些薄弱問題去unfilterred?至少應該做的是一個具體的實例,至少有人不知道'單詞'不會被弄糊塗。 – sln 2011-01-23 22:06:05
@sin這些虛弱的評論如何未經過濾?應該做的最少是解釋混亂。 – marcog 2011-01-23 22:37:58
這個問題的問題是使用一個本身可以成爲問題文本一部分的示例文本。就好像世界上沒有其他句子一樣。 – maaartinus 2011-01-23 23:51:04