※ 引述《chrisdar (克里斯)》之銘言:
: 現在我有一系列單選題問卷如下
: (Q1) Question 1
: (1)[ ] Answer 1 for Question 1
: (2)[ ] Answer 2 for Question 1
: (3)[*] Answer 3 for Question 1
: (4)[ ] Answer 4 for Question 1
: (Q2) Question 2
: (1)[ ] Answer 1 for Question 2
: (2)[ ] Answer 2 for Question 2
: (3)[ ] Answer 3 for Question 2
: (4)[ ] Answer 4 for Question 2
: (Q3) Question 3
: (1)[*] Answer 1 for Question 3
: (2)[ ] Answer 2 for Question 3
: (3)[*] Answer 3 for Question 3
: (4)[ ] Answer 4 for Question 3
: (Q4) Question 4
: (1)[*] Answer 1 for Question 4
: (2)[ ] Answer 2 for Question 4
: (3)[ ] Answer 3 for Question 4
: (4)[ ] Answer 4 for Question 4
: Pattern : \(Q(\d+)\).*?\((\d+)\)\[\*\]
: 現在問題出在
: 1. Q2 因為沒有作答 導致把 Q3 的答案帶到 Q2 去
: 2. Q3 重複作答也無法排除
: 可否提供一些思考方式或做法 謝謝
給你一個提示當作參考
用[^\*]去做
我已經實做出來,測試也OK
也就是說可以只篩選出只有填一個*的題目
還有,一行就可以了,不用分次
如果你不想花時間想的話
請私信給我