Theory and Practice
About Archives Categories Tags Authors 中文 ไทย
  1. Tags
  2. Regular Expression

[Pelican] Remove Prefix in PATH_METADATA Using Named Regex Group

January 01, 2023

Remove prefix of Pelican PATH_METADATA using Python named regular expression group.

 read more »

[Vim] Replace Using Regular Expression Group

December 01, 2018

Use regular expresion groups to replace texts in Vim.

 read more »

[Golang] Replace Space and Newline in String

October 09, 2018

Use Go regexp package to repace spaces and newline in the string.

 read more »

[Golang] Get Instagram User Information From HTML Source

April 12, 2018

Given user name, get Instagram user information, such as id, username, biography, etc., in Go.

 read more »

[Chrome Extension] Download Instagram Profile Picture in Full Size

March 19, 2018 (Updated: March 23, 2018)

This Chrome extension helps you download Instagram profile picture in full size.

 read more »

Get Instagram Profile Picture in Full Size

March 18, 2018 (Updated: March 23, 2018)

Given the url of Instagram profile picture, return the url of profile picture in full size.

 read more »

[Golang] Parse Dash Manifest in Instagram Post Live Story

March 05, 2018

Get urls of video and audio of Instagram user post live videos shared to stories via Go standard regexp package.

 read more »

[Chrome Extension] Show Instagram Id on User Page

February 22, 2018 (Updated: April 13, 2018)

A Chrome extension to help you show Instagram id on the user page.

 read more »

[Chrome Extension] Try to Print Facebook Id Next to User Name

February 21, 2018

A Chrome extension to help you try to get Facebook user id by URL change and print the id next to name if found.

 read more »

Try to Get Facebook User Id by URL Change and Chrome Extension

February 20, 2018

A Chrome extension to help you try to get Facebook user id by URL change.

 read more »

Convert Text to HTML Link in Go

January 14, 2018

Convert specific texts to clickable links (<a> tag) in HTML document via Go/GopherJS.

 read more »

[JavaScript] Convert Text to Link in HTML

January 12, 2018

Convert specific texts to clickable links (<a> tag) in HTML document via JavaScript.

 read more »

[JavaScript] Append Text at the Beginning of Each Line

January 11, 2018

Append text at the beginning of each line via JavaScript.

 read more »

[Golang] Check If a String Exists in File

June 05, 2017

Check if a string exists in file via Go regexp package.

 read more »

[Golang] Get HTML Element Attribute via Regular Expression

April 12, 2017

Get the attribute of a HTML element via named group matches in Go regexp package.

 read more »

[Bash] Move Directories and Modify Path in Files

January 18, 2017

Replace specific pattern of strings in HTML files under directory via sed.

 read more »

[sed] Replace String in Directory

January 11, 2017

Replace specific pattern of strings in HTML files under directory via sed.

 read more »

[GopherJS] Add Tooltip to Every (Pāli) Word

June 10, 2016

Add tooltip to every word via GopherJS. Used in Pāli Tipiṭaka.

 read more »

[AngularJS] Add Tooltip to Every Word

May 31, 2016

Add tooltip to every word via AngularJS. Used in Pāli Tipiṭaka.

 read more »

[Golang] Replace Pāli Word in Velthuis Scheme With Unicode

May 24, 2016

Find Pāli word in Velthuis scheme, and replace them with unicode via Go programming language.

 read more »

[Bash] Find Redundant Files Saved by Chrome

May 23, 2016

Find redundant files saved by Chrome browser via Bash script.

 read more »

[Golang] Find Redundant Files Saved by Chrome

May 22, 2016

Find redundant files saved by Chrome browser via Go.

 read more »

[Golang] Wrap Pāli Words in Span Element

April 28, 2016

Wrap Pāli words in span element via regular expression and Go.

 read more »

Search Links of Major Search Engines

April 03, 2016 (Updated: February 24, 2017)

Search links of major search engines - Google, DuckDuckGo, Bing, Yahoo, Baidu, Yandex, Ecosia, Qwant.

 read more »

[JavaScript] Wrap Pāli Words in Span Element

April 02, 2016

Wrap Pāli words in span element via regular expression and JavaScript.

 read more »

[sed] Replace reStructuredText Link by Regular Expression

March 30, 2016

Make reStructuredText links of the same name anonymous via regular expression by sed stream editor.

 read more »

[sed] Replace Footnote by Regular Expression

March 29, 2016

Replace footnote in reStructuredText format via regular expression by sed stream editor.

 read more »

[Vim] Replace Footnote by Regular Expression

March 28, 2016

Replace footnote in reStructuredText format via regular expression in Vim editor.

 read more »

[sed] Insert Line After First Pattern Match

March 20, 2016

Insert a line after first pattern match via sed stream editor.

 read more »

[Golang] Find Pāli Word in Velthuis Scheme

March 17, 2016

Find Pāli word in Velthuis scheme via Go programming language.

 read more »

[sed] Append Text at the Beginning of Each Line

March 15, 2016

Append text at the beginning of each line via sed stream editor.

 read more »

[Makefile] Concetenate and Minify CSS via sed and tr Command

March 11, 2016

Concatenate and Minify CSS via sed and tr command in Makefile.

 read more »

[Golang] Minify HTML

March 10, 2016

Minify HTML via Go programming language.

 read more »

[Golang] Minify CSS

March 09, 2016

Minify CSS via Go programming language.

 read more »

[Golang] Remove C/C++ Style Comments

March 08, 2016

Remove C/C++ style comments via Go programming language.

 read more »

[Python] Find Redundant Files Saved by Chrome

March 03, 2016

Find redundant files saved by Chrome browser via Python.

 read more »

[Python] Insert Line With Matched Pattern

March 01, 2016

Extract URL from reStructuredText link and insert the URL in the file as metadata via Python.

 read more »

[Golang] Regular Expression Named Group - Extract Metadata from File Path

February 20, 2016

Go regexp example of named group matches - extract metadata from file path.

 read more »

[Python] Convert Footnote to reStructuredText Format

February 15, 2016

Python Regular Expression to convert footnotes in file to reStructuredText format.

 read more »

[Golang] Convert PO file to JSON Format

January 27, 2016

Convert PO files to JSON format via Go. The data of JSON format can be passed to front-end by web servers to translate a text string into the user's native language. You can use the JSON data to implement gettext function in browsers.

 read more »

[Python] Convert PO file to JSON Format

January 26, 2016

Convert PO files to JSON format via Python. The data of JSON format can be passed to front-end by web servers to translate a text string into the user's native language. You can use the JSON data to implement gettext function in browsers.

 read more »

xgettext Extract Translatable Strings From Golang html/template

January 19, 2016

Use xgettext (one of GNU gettext utilities) to extract translatable strings from HTML templates of Go html/template.

 read more »

i18n Golang Web Application by gettext and html/template

January 19, 2016

i18n (Internationalization) Go web applications by GNU gettext tools and html/template. Use PO and MO files generated by gettext in Golang web application to render HTML of specific languages by html/template.

 read more »

[Python] Use Regular Expression to Find Strings Marked For Internationalization (i18n)

January 01, 2016

Use regular expression in Python to search and find strings marked for i18n (Internationalization)

 read more »
Powered by Github Pages, Pelican, pyScss.