Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

  1. It is suggested that you use the package stringi instead of string utilities in R base. There are multiple reasons.

     - stringi has consistent namings and signatures
     - the behavior of functions in stringi is more reasonable from engineering perspective

Regular Expression

  1. Use $1 instead of \\1 to capture the nth capture group, and similarly for other capture groups.