Regex
Post

Regex

String Example:

$app->post('upload-avatar', function (Request $request, Response $response, array $args) use ($container)  {

Useful for Notepad++ Keeps only the string $app->post('upload-avatar' and deletes eveything else

Replace:
(\$app.*post\('[\w\/\{\}\-]+').*
Replace with:
\1