Skip to content

Letter Ranges

Derek Callaway edited this page Jun 15, 2018 · 4 revisions

strglob wiki

Letter Ranges

The letter ranges feature of strglob implements an ordered set of alphabetic characters--either lowercase or uppercase. Specifying a letter range is done by surrounding the letters with square brackets and using a dash character as a separator. Refer to the samples below for demonstrations of both cases.


Lowercase Example Inputs

[a-d]
{a..d}
{a..d..1}


Lowercase Example Output

a
b
c
d


Uppercase Example Inputs

[E-H]
{E..H}
{E..H..1}


Uppercase Example Output

E
F
G
H


Clone this wiki locally