Swift 正則表示法

07/09/2017

Swift 正則表示法

過去的版本中 ,要使用必須自己創造一個匹配的工具,大概像下面那個樣子


現在基本上一行就搞定,大概像下面那樣

只要想好自己的規則用正則表示法寫好就能夠完成囉

一些剛好有用到的就分享一下

如果要驗證結果的話 就用Test跑跑囉

Share
© 2017  complain by GREASO WANG.
Powered by Webnode
Create your website for free! This website was made with Webnode. Create your own for free today! Get started