I would like to join column “Access” from the second table to the first one.
First table:
ID
NAME
123454dcv
Schmidt
123454fff
Skorski
1234avcfrt
Li
654744rt
Mumford
12dcf
Bryan
Second Table:
ID
Access
123
55
654744
27
12dcf
25
So, if values in "column ID" in the first table match partially/fully the values from "column ID"(Second table), then add the value from column Access.
Hello @IMR2KA
What do partially means? Be aware that you are applying a generic workflow, and regex can be tricky depending the source, encoding…
If you can provide some dummy data or sample representing your use case, when it is only partially matching; we can try to find a more suitable regex approach. But I guess the mechanics are valid for your requested JOIN function.
regexMatcher: Applies regex to string and returns true if regex matches. $LOGIC$ [TRUE/FALSE]
The(?!) means insensitive case; if your look for an exact case match, it can be removed. [$] avoids to end the code if the reference text includes such character…
Sorry for being not precise. I wrote partially, because I added some steps to the solution from @takbb, but as a result it works.
@gonhaddock I used regex101.com to understand the regex but it is kind of difficult.
1. (?i) CASE INSENSITIVE
2. (.*? Any characters before the column value
3. )[^$] takes into account all values except for ones with $ at the end
4. *) repeat
5. $ finish the cell with $ to go to the next cell (see 3)
Correct?
Just forget about [^$] as it is optional and it looks a remaining of the reused code from some previous use case. So here is redundant (or not).
Just be aware that you have to include dollar symbol between the square brackets, when it is present in your wildcard (see example). This is why working with regex can’t be generic, specially when working with special characters.