Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?<!animations|foreach|completion|block|dispatch|configuration|mas_makeConstraints|dispatchUI):\s*(\^(?!\))[^{;]*\{\s+(?!\s*@strongify\(self)[^{}]*?\b(?:self|_)(?!\s+class))
/
gm
Unit Tests
[[RACObserve(self,
model)
ignore:nil]
s…
→ regex does not match
[Dispatcher
dispatch:
^{
NSD…
→ regex does not match
-
(id)init
{
if
(self
=
[super
init]…
→ regex does not match
-
(void)dismissViewControllerAnimated:(B…
→ regex does not match
[UIView
animateWithDuration:0.5
animatio…
→ regex does not match
//
has
self
in
sub
block
without
strongi…
→ regex does match
+
(instancetype)sharedManager
{
stat…
→ regex does not match
//
has
self
in
sub
block
with
strongify
…
→ regex does not match
//
has
self
in
sub
block
without
strongi…
→ regex does match
//
has
self
without
strongify
[Notifica…
→ regex does match
//
has
self
has
strongify,
but
has
multi…
→ regex does not match
//
has
self
has
strongify
at
first
line
…
→ regex does match
//
has
self
has
strongify
at
first
line…
→ regex does not match
[Notification_signal(UITextViewTextDidCh…
→ regex does not match