I am trying to find a regex which supports a pattern like below:
- String starts with //
- String has a delimiter after //; (suppose ; is the delimiter)
- String has \n after demiliter (//;\n)
- Finally String contains any number of digits with that delimiter (//;\n2;3;4;5)
I tried ^//\\D+\\n.*$
but it doesn't work.