iphone - Regular Expression for number.(space), objective-c -


i have nsarray of lines (objective-c iphone), , i'm trying find line starts number, followed dot , space, can have number of spaces (including none) before it, , have text following eg:

    1. random text            2. text random 3. 

what regular expression use this? (i'm trying learn it, , needed above expression anyway, thought i'd use example)

with c#:

@"^ *[0-9]+\. " 

it doesn't check presence of after ., legal:

1.(space) 

if delete @ , escape \ should work other languages (it pretty "down-to-earth" regexpes go)


Comments

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -