두문자어

두문자어

긴 구문을 두문자어로 변환해요.
두문자어 깊이 파고들기!

기본적인 공백 매칭부터 시작해 유니코드를 살펴보고, 마지막으로 negative lookbehind까지, 정규 표현식을 가볍게 파고들어 봐요. 끝으로 상태 기계를 비롯해 두문자어 문제를 푸는 다른 접근법들도 살펴봐요.

지시 사항

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링크가 새 창이나 탭에서 열려요