I’m working on a new Java project and therefore im reading the already existing code. On a very important part of the code if found the following regex expression and i can’t really tell what they are doing. Anybody can explain in plain english what they do??
1)
[^,]*|.+(,).+
2)
(\()?\d+(?(1)\))
1)
2)
Also note that parenthesis are used to capture certain parts of the regular expression, except, of course, if they are escaped with a backslash