There is no need to escape forward slashes. Your code works fine if you just do:
String[] paths = path.split("https://stackoverflow.com/");
More Related Contents:
- Need some advice on split() method in Java [closed]
- How to split a string if any chracter is found in java
- Java String split removed empty values
- How to split a string with any whitespace chars as delimiters
- Split string to equal length substrings in Java
- How to split a String by space
- Split string with dot as delimiter
- Splitting on comma outside quotes
- Java string split with “.” (dot) [duplicate]
- How to convert comma-separated String to List?
- Splitting a string at every n-th character
- How to split a string in Java
- How to split a comma-separated string?
- string to string array conversion in java
- How can I use “.” as the delimiter with String.split() in java [duplicate]
- How do I split a string in Java?
- Extracting pairs of words using String.split()
- Java String.split() Regex
- Java: How to split a string by a number of characters?
- Split a string, at every nth position
- Java String.split() sometimes giving blank strings
- Java split string to array [duplicate]
- Java: String split(): I want it to include the empty strings at the end [duplicate]
- A method to reverse effect of java String.split()? [duplicate]
- Java split String performances
- split string only on first instance – java
- Java equivalent to Explode and Implode(PHP) [closed]
- Split string with | separator in java
- Split string into repeated characters
- Java replace all square brackets in a string