fork download
/* package whatever; // don't place package name! */

import java.util.regex.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		String title = "Nisekoi Vol TBD Ch 215";
		Pattern p = Pattern.compile("Vol (.*) Ch (.*)");
		Matcher m = p.matcher(title);
		m.find();
		System.out.println("Volume : " + m.group(1));
		System.out.println("Chapter : " + m.group(2));
	}
}
Success #stdin #stdout 0.1s 320576KB
stdin
Standard input is empty
stdout
Volume : TBD
Chapter : 215