-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Exercise 071: Regular Expression Sigil ~r
Topic: Sigils
Level: 17
Difficulty: 1
Prerequisites
- Exercise 005: Strings
- Basic regex understanding
Learning Objectives
Students will learn to:
- Create regex with ~r sigil
- Use Regex.match? and Regex.run
- Understand regex modifiers
Key Concepts
- ~r sigil syntax
- Regex module functions
- Regex modifiers (i for case-insensitive)
Exercise Structure
- Explain ~r"pattern" creates compiled regex
- Show examples with Regex.match?, Regex.run
- Task: Match string against regex pattern
- Expected output: Boolean match result
Hints
~r allows regex without double-escaping backslashes
References
- Elixir docs: https://hexdocs.pm/elixir/Regex.html
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels