我需要做一些字符串操作,它有點擊敗我真正的好。Excel VBA字符串操作
我需要從字符串中提取一些子字符串。
這是字符串:
"Modified by: Coanda Oana Amalia coanoa1 (coanoa1) on Mon Oct 14 08:53:11 EEST 2013
Modified Fields:
Actual target date: 17.10.2013 GMT+02:00
Effects of change: ---------------------------------
[ErrH]
Regenerate error configuration.
Effort: 2h
Design: 1h
---------------------------------
[Ist]
Rename error.
Effort: 1h
Design: 1h
---------------------------------
[RTE]
Rename the runnable according to the change.
Check internal errors mapping.
Effort: 2h
Design: 1h"
我需要提取每個模塊,一個模塊是指從---------------------------------
到Design: 1h
。因此,子應該是這樣的:
"[RTE]
Rename the runnable according to the change.
Check internal errors mapping.
Effort: 2h
Design: 1h"
"[ErrH]
Regenerate error configuration.
Effort: 2h
Design: 1h"
"[Ist]
Rename error.
Effort: 1h
Design: 1h"
請幫幫忙!
嘗試使用'Split'。那應該不是太難 – sam092