Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // postText is value at "selftext" here: https://www.reddit.com/api/info.json?id=t3_2gavo6
- String[] regexArr = postText.split("\\*\\*Minecraft[\\s\\w]{1,}:\\*\\* DEATH HYPE \\d{1,}\\.\\d{1,}");
- String regexLine = regexArr[1];
- // Line 4 throws "java.lang.ArrayIndexOutOfBoundsException", so I assume it's saying the regex did not work correctly, even though it does on regex101.com
Advertisement
Add Comment
Please, Sign In to add comment