Text:
->on('Some_Class_Name::someMethodName', 'Another_Class_Name::anotherMethodName')
Search/Replace flags:
Regular Expression
Preserve Case (if disabled, there's no problem)
Find What:
->(.*)\('(.*)', '(.*)'\)
Replace With:
- \1, \2, \3 ]
Result:
- on, somE_clasS_name::soMemethOdname, Another_Class_Name::anotherMethodName ]
"Preserve Case" option results in weird text replacement
unirgy
#1
0 Likes