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
without second option:
contents(dir)or with a blank second option:
contents(dir, '')Result:
Returns object with everything