頭字語

頭字語

長いフレーズをその頭字語に変換してください。
頭字語を深掘りしましょう!

正規表現をやさしく掘り下げます。基本的な空白のマッチングから始め、Unicodeを探索し、否定後読みで締めくくります。最後に、ステートマシンを含む頭字語への他のアプローチをいくつか見ていきます。

説明

Convert a phrase to its acronym.

Techies love their TLA (Three Letter Acronyms)!

Help generate some jargon by writing a program that converts a long name like Portable Network Graphics to its acronym (PNG).

Punctuation is handled as follows: hyphens are word separators (like whitespace); all other punctuation can be removed from the input.

For example:

Input Output
As Soon As Possible ASAP
Liquid-crystal display LCD
Thank George It's Friday! TGIF

出典

Julien Vanierリンクは新しいウィンドウまたはタブで開きます