Skip to content

documentation of whitespace handling #19

@bernstei

Description

@bernstei

Is there any more complete documentation of the whitespace handling? I'm trying to parse a list of regexps that are surrounded by containing tokens (think "1.0 2.0 3.0"), with mandatory spaces separating them. Repeat doesn't work, because it accepts a sequence w/o any space, and if I add a space to the regex it fails to match the last item if there's no space after it. List with delimiter=" " doesn't work either. If I look for repetition of a Keyword instead of a Regex it behaves as expected, presumably because keywords have to be separated by something. More explicit information on where whitespace is or isn't required would be helpful to figure out how to do this, I think. E.g. what exactly needs to separate keywords? whitespace? word breaks\b? Is it true that List delimiters can't be whitespace?

As a secondary question, what's the best way to match what I need (a list of regexps with spaces as delimiters, but no space required after the final one)? Must I do Sequence(Repeat(Regex(re + '\s'), mi=0), re) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions