نگاهی ملایم به عبارتهای باقاعده میاندازیم: از تطبیق سادهی فاصلههای خالی شروع میکنیم، یونیکد را بررسی میکنیم و در پایان به پسنگرهای منفی میرسیم. در آخر هم چند رویکرد دیگر برای سرنام را بررسی میکنیم، از جمله ماشینهای حالت.
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 |
هنوز آن را در هیچ زبانی تکمیل نکردهاید.