❔ string modify
how can i transform string like this
1234 5678 9123 4567
to this 1234 **** **** 4567
in a lambda function7 Replies
A few different ways. You could split on spaces, separate the first and the last element then replace the rest with *.
or you could count total amount of chars and use range indexes to extract the parts you want to show
okay thanks
Let me know if you get stuck
aight
Regex is another options, of course
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.