I have a string "Foo*#*Bar*#*Foo1*#*Bar1"
I want a regular expression which when used in String.split(String RegularExpression) will return
[0] = "Foo";
[1] = "Bar";
[2] = "Foo1";
[3] = "Bar1";
I tried \*#*\, but it not returning what i wanted.
You need to escape both asterisks:
So in Java you’d do something like this:
Try Regexr.com for experimenting with regular expressions.