the first step to solving a problem is to define
it. Unfortunately, it has become common to merely write down a bunch of examples and then wait for others to figure out the underlying requirements. This really doesn't help anyone. It's additional work for us, it increases the risk of misunderstandings, and it makes you passive and dependend on others.
You don't have to be a regex pro to define a concrete search pattern that would solve the problem. Just put it into English words.
Take the first task. Judging from the examples, the problem might be something like this:
"We have a bunch of words separated by commas and/or spaces. We want to extract the individual words."
If that's actually the problem, then a possible pattern for a word would be this:
"A (non-empty) sequence of characters different from spaces and commas."
The last step of translating this description into a regex is easy and just a matter of learning the syntax:
Note that this is only a guess
. It's impossible to derive the actual requirements from a bunch of examples. Maybe there are other unwanted characters, and maybe the correct approach would be to search for sequences of characters of the (French) alphabet.
In the second example, you're probably
looking for dates in the format "dd.mm.yyyy". So what's the pattern (in English)?