I'm porting some Lua code to JS and I haven't worked with Lua so far.
There's the Lua pattern "^([^aeiouàèéêíòóôúïü]*)(.-)$"
and I found the following explanation for the hyphen here:
- Match the previous character (or class) zero or more times, as few times as possible.
I'm trying to figure out what the equivalent as a regular expression would be. Also I don't understand why this is needed in the first place - wouldn't ending in (.*)$
suffice?