Deconstruct string matched with .startsWith
, .endsWith
, regex
#220
Labels
enhancement
New feature or request
.startsWith
, .endsWith
, regex
#220
Is your feature request related to a problem? Please describe.
I'm always frustrated when: I need to split the string manually after it matches
.startsWith
or.endsWith
or regex (matching group).For example I want to normalize phone number from a string
So, if it start with a "0" or "0033" I want to replace this number with "+33" (country code), if it starts with "+33", it's Ok.
same with a regex:
Describe the solution you'd like
I would like solution to match strings more like some other functionnal programming langage, example Elixir
Describe alternatives you've considered
Maybe select could be surcharged and select with a regex would give you "matches" (to be honest, I don't have a good idea of how it should be done)
or
The text was updated successfully, but these errors were encountered: