Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 576 Bytes

File metadata and controls

27 lines (17 loc) · 576 Bytes

Regex examples

Examples are intended to assist on how to pass regex to content() second argument. Tests below are based on IDPF's "Moby Dick1" epub 3 example.

dir in contents() is a valid/exists directory

Get everything in directory

without second option:

contents(dir)

or with a blank second option:

contents(dir, '')

Result:

Returns object with everything

Footnotes

  1. IDPF | "Moby Dick"