Now, I something doing about parse work.
I want to use actionscript3.0 RegularExpression开发者_JAVA技巧 source code to Objective-C program.
var reg:RegExp = new RegExp("^[0-9]+$", "gm");
how to convert NSRegularExpression?
p.s: ActionScript 3.0 implements regular expressions as defined in the ECMAScript edition 3 language specification.
thk.
Check how you use regexes in objective-c, reuse the pattern ^[0-9]+$ (btw. you can rewrite it to ^\d+$). You need also to activate the modifiers g (global match ==> matches all occurences) and m (multiline, makes the $ matches on line ends instead of string end).
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论