skip to content
Alvin Lucillo

Character ranges

/ 1 min read

💻 Tech

To find matching text given range of characters, use [] and specify the range.

Example: [D-H]og What it does: Look for for anything the starts with characters from D to H then followed by ‘og’.

Bog
Cog
Dog - matched
Fog - matched
Hog - matched
Jog
Log

This also works with numbers: Test[3-4]

Test1
Test2
Test3 - matched
Test4 - matched
Test5