macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

stringByReplacingMatchesInString:options:range:withTemplate:

INDEX>Foundation>NSRegularExpression

- (NSString *)stringByReplacingMatchesInString:(NSString *)string
                            options:(NSMatchingOptions)options
                            range:(NSRange)range
                            withTemplate:(NSString *)template

解説

引数


返り値


クラス

NSRegularExpression

使用可能

OS X 10.7以降
iOS 4.0以降

参照

– replaceMatchesInString:options:range:withTemplate:

定義

NSRegularExpression.h

サンプル