Skip to content

non-/whitespace character + std. quantifiers #2

Description

@3F

Add any variant for using of whitespace & non-whitespace character/s

v1 - single meta-symbol + std. quantifier

  • % - whitespace + quantifier *?+#
  • & - non-whitespace + quantifier *?+#

for example:

  • 1%+5 -> 125, 12345, ...
  • 1%##5 -> 1235, 1775, ...
  • 1%?5 -> 15, 125, 145, ...
  • 1%*5 -> 123467895, 15, ...

configurable % + & like:

search(const TCHAR* data, const TCHAR* filter, const TCHAR* whsp, const TCHAR* nonwhsp)
_T("qwerty012345...")
_T("	 ")

or simply:

search(const TCHAR* data, const TCHAR* filter, const TCHAR* whsp)
_T("	 ") - all except this is a non-whitespace character

but the first variant is more flexible for using special set of characters for both cases of % + &

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions