-2
需要正則表達式來識別包含在任何特殊字符中的字符串部分,並將其餘部分轉換爲大寫字母。例如,將字符串轉換爲大寫字母,不屬於任何特殊字符
He did soME "experimenting (chemistry, biology)" in (hIS) ScHool Days.
輸出:
HE DID SOME "experimenting (chemistry, biology)" IN (hIS) SCHOOL DAYS.
在上述內的任何特殊字符括起來的話的示例保持不變,而它們沒有得到轉化爲大寫。
語言首選是VB。