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
/
(assertTrue)(.+?)( ==)
/
g
Input 1
1
New
$this->assertTrue($post->item_id == $actionItem->id); $this->assertTrue($post->action == 'edited'); $this->assertTrue($post->type == 'Action Item'); $this->assertTrue($post->title == $actionItem->title); Designed for use in PHPstorm. REGEX in First "Replace" string, and the following in the second: AssertEquals$2,
Substitution
$this->assertTrue($post->item_id == $actionItem->id); $this->assertTrue($post->action == 'edited'); $this->assertTrue($post->type == 'Action Item'); $this->assertTrue($post->title == $actionItem->title); Designed for use in PHPstorm. REGEX in First "Replace" string, and the following in the second: AssertEquals$2,