Skip to content

any() function ignoring the first character #114

Answered by wackbyte
Vaimer9 asked this question in Q&A
Discussion options

You must be logged in to vote
  • The first character is ignored by any().ignore_then(...), if you don't want to ignore it, use then
  • text::ident().padded().repeated() outputs a list of strings and the padded() ignores the whitespace in between. The collect::<String>() then merges them all into a single string, so: "ello world" -> ["ello", "world"] -> "elloworld"

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Vaimer9
Comment options

@zesterer
Comment options

@Vaimer9
Comment options

@zesterer
Comment options

@Vaimer9
Comment options

Answer selected by Vaimer9
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
3 participants