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

regexp and split have different order of arguments #5252

Open
philrz opened this issue Aug 25, 2024 · 0 comments
Open

regexp and split have different order of arguments #5252

philrz opened this issue Aug 25, 2024 · 0 comments

Comments

@philrz
Copy link
Contributor

philrz commented Aug 25, 2024

A user reported in a recent community Slack thread:

regexp and split have their args in different orders -- regexp takes the regex first, then the input string; split takes the input string first, then the split-on string. feels like a gotchya in my noggin'. 🙂

split(this,";")
regexp(/;/,this)

See also: #5205

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

No branches or pull requests

1 participant