Skip to content

Instantly share code, notes, and snippets.

@horaciod
Last active July 26, 2025 12:47
Show Gist options
  • Select an option

  • Save horaciod/c3a19fcba5a1128f65ac2a8ccd691eee to your computer and use it in GitHub Desktop.

Select an option

Save horaciod/c3a19fcba5a1128f65ac2a8ccd691eee to your computer and use it in GitHub Desktop.
replace regular expression in VSCode
de
if (isset($_REQUEST['aplic_mensaje'])) {
$this->mensaje = $_REQUEST['aplic_mensaje'];
}
search : \$_REQUEST\[(.*?)\]
replace : getrequest($1)
a
if (isset(getrequest('aplic_mensaje'))) {
$this->mensaje = getrequest('aplic_mensaje');
}
@horaciod
Copy link
Author

cambio de sesiones
$_SESSION['draphp']['usuario'][(.*?)]
auth::usession($1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment