Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition to using regex #6

Open
cyrusae opened this issue Jan 19, 2024 · 2 comments
Open

Transition to using regex #6

cyrusae opened this issue Jan 19, 2024 · 2 comments
Labels
enhancement New feature or request priority: high Do while procrastinating: If I'm doing anything it should be this, probably.

Comments

@cyrusae
Copy link
Owner

cyrusae commented Jan 19, 2024

Per this 2022 post, base grepl with perl = TRUE is the best-looking option and avoids novel dependencies.

The mixed-case single-character variant is the first priority, then everything else is case-agnostic and can be transformed once to use a single reference table.

Filter on [:alpha:] to avoid chaff in input.

@cyrusae cyrusae added enhancement New feature or request priority: high Do while procrastinating: If I'm doing anything it should be this, probably. labels Jan 19, 2024
@cyrusae
Copy link
Owner Author

cyrusae commented Jan 19, 2024

EXCEPT FOR @. MIXED-CASE NEEDS TO RETAIN @ BEFORE MOVING ON DO NOT FORGET THIS

@cyrusae
Copy link
Owner Author

cyrusae commented Jan 19, 2024

i.e. [[:alpha:]@#] initial filter, since @ is a legal symbol and H# needs to be NA'd later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: high Do while procrastinating: If I'm doing anything it should be this, probably.
Projects
None yet
Development

No branches or pull requests

1 participant