In this case using vs code
print(.*?)\n
print ($1)
- To recreate mocked php functions from the manual index page, eg. https://www.php.net/manual/en/book.pcntl.php
- Seach:
^(.*?)\W\W+\W(.*?)$
- Replace:
\/**\n *\n * $1\n *\t$2\n\ *\n *\n*\/\nfunction $1(\$description = "$2", ...\$args) {\n\tif(\$_ENV['DISABLE_PCNTL_PLUGIN']) return null\;\n\terror_log("['PCNTL_PLUGIN'] Ran, $1");\n}\n