Please help me to find the end of the string and parse it.
I have the string like this "Some words" and "Some another words||MyTag". Please help me with regex to check any of this strings. But in the second case please extract "MyTag". So please make two groups: "Some words" or "Some another words" and MyTag or empty string.
I tried "^([\W\w]+)(?:||(.*))?" but without any success.