I before E except after C: Difference between revisions

Content added Content deleted
m (→‎AppleScript :: Functional: Updated patterns)
Line 560: Line 560:
on |λ|(s)
on |λ|(s)
set ca to current application
set ca to current application
set oRgx to ca's NSRegularExpression's ¬
((ca's NSRegularExpression's ¬
regularExpressionWithPattern:regexString ¬
regularExpressionWithPattern:regexString ¬
options:((ca's NSRegularExpressionAnchorsMatchLines)) ¬
options:(ca's NSRegularExpressionAnchorsMatchLines) ¬
|error|:(missing value)
|error|:(missing value))'s ¬
numberOfMatchesInString:s ¬
(oRgx's numberOfMatchesInString:s ¬
options:0 ¬
options:0 range:{location:0, |length|:s's |length|()}) as integer
range:{location:0, |length|:s's |length|()}) as integer
end |λ|
end |λ|
end script
end script