Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Find Words Starting with a Specific Letter | Introduction to Regular Expressions
Python Regular Expressions

bookChallenge: Find Words Starting with a Specific Letter

You will write a function that extracts all words starting with the uppercase letter 'A' from a given string. This exercise will help you practice using basic regular expression patterns and Python's re module. Only words beginning with a capital 'A' should be matched—the search must be case-sensitive.

Key Points:

  • Use Python's re module;
  • Match only words that start with uppercase 'A';
  • Preserve the original form of each matched word from the text.
Aufgabe

Swipe to start coding

Write a function to extract all words that start with the uppercase letter A from a given string using regular expressions. Only words beginning with a capital A should be included in the result. The search is case-sensitive. Return the words exactly as they appear in the input text.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 3
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

Awesome!

Completion rate improved to 6.67

bookChallenge: Find Words Starting with a Specific Letter

Swipe um das Menü anzuzeigen

You will write a function that extracts all words starting with the uppercase letter 'A' from a given string. This exercise will help you practice using basic regular expression patterns and Python's re module. Only words beginning with a capital 'A' should be matched—the search must be case-sensitive.

Key Points:

  • Use Python's re module;
  • Match only words that start with uppercase 'A';
  • Preserve the original form of each matched word from the text.
Aufgabe

Swipe to start coding

Write a function to extract all words that start with the uppercase letter A from a given string using regular expressions. Only words beginning with a capital A should be included in the result. The search is case-sensitive. Return the words exactly as they appear in the input text.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 3
single

single

some-alt