Search notes:

Vim ex command: :substitute

`[range]:s/{regexp}/{string}/[flags] [count]`
Replace stings that match the regexp with string.

Replace a string with an expression

Starting the subsitute string with an \= causes the replace string to be evaluated as an expression.
The following command replaces an URI-percent-encoded (aka URL encoding) octet with its corresponding ASCII value:
s/%\(..\)/\=nr2char(str2nr(submatch(1), 16))/g

See also

The substitute() function.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758191939, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/vim/commands/s/index(47): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78