Cursus Raku / Reguliere expressies en grammatica’s / Reguliere expressies / Ankers / Exercises

Een heel woord

Opgave

Schrijf een patroon dat is alleen als heel woord matcht. Test het op 'this is fine' — waar de letters is ook binnen this voorkomen — en druk de match af.

Voorbeeld

Het programma drukt af:

「is」

Oplossing

Bekijk de oplossing

Cursusnavigatie

Oplossing: De hele string   |   Oplossing: Een heel woord