Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
/([^])\1+/g
1st Capturing group ([^])
[^]
match any character (Note: Avoid this construct, use . or[\s\S]
instead.)\1
matches the same text as most recently matched by the 1st capturing groupQuantifier:
+
Between one and unlimited times, as many times as possible, giving back as needed [greedy]g
modifier: global. All matches (don't return on first match)To explore this further, go to https://regex101.com/r/zX7aN0/1
That solution appears to work. Only the second argument should ever be undefined (indicating that there are no minor words). What error do you get?
Don't spoil the solution to other users. Instead, mark your comment as having spoiler content.