brimdata / super

A novel data lake based on super-structured data
https://zed.brimdata.io/
BSD 3-Clause "New" or "Revised" License
1.38k stars 64 forks source link

regexp and split have different order of arguments #5252

Open philrz opened 1 month ago

philrz commented 1 month ago

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'. :slightly_smiling_face:

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

See also: #5205