我有一個像下面的文字。如何用正則表達式選擇特定數量的字符單詞
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum
has been the industry's standard dummy text ever since the fivec harword 1500s, when an unknown printer
took a galley of type and scrambled it to make a type specimen fivec harword book. It has survived not
only five centuries, but also the leap into electronic typesetting, remaining essentially
unchanged. It was popularised in the 1960s with the release of fivec harword Letraset sheets containing
Lorem Ipsum passages, and more recently with desktop publishing software like Aldus
PageMaker including versions of Lorem Ipsum.
這就是我需要的正則表達式:
1-選擇五個字符的單詞。
2-在第一步之後選擇一個空格。
3-在第二步之後選擇七個字符。
它應該捕獲所有的fivec harword
字符串。我怎樣才能做到這一點?
感謝它的作品,我的預期。 – Imrahil 2013-03-22 11:15:35
@Ihrahil:不客氣。 – Toto 2013-03-22 11:18:46
+1對於一個不好的問題很好的答案 – 2014-09-08 19:00:07