Search notes:

vim script: submatch

"
" ..\run_.bat submatch
"
redir > submatch.out

let s:txt = 'foo 42 bar'
let s:replaced = substitute(s:txt, '\v(\d)(\d)', '\=submatch(1) + submatch(2)', '')
echo s:replaced

redir END
q
Github repository about-vim, path: /vimscript/functions/submatch.vim

See also

Vim: built in functions
VIM script

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...', 1745530265, '18.116.14.133', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/vim/script/vimscript/functions/submatch(51): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78