기본적인 공백 매칭부터 시작해 유니코드를 살펴보고, 마지막으로 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 |
아직 어떤 언어로도 완료하지 않았어요.