Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下代码:
CGFloat eyeBallColorComponents[4] = //some stuff that changes
我只想匹配CGFloat eyeBallColorComponents[4] =它开头的任何表达式,无论等号右边是什么。我正在使用XCode正则表达式查找和替换。有谁知道我该怎么做?
CGFloat eyeBallColorComponents[4] =
XCode
CGFloat eyeBallColorComponents\[4\] =.*
.*匹配到行尾的任何字符。是\转义字符。
.*
\