All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xson.web.App Maven / Gradle / Ivy

Go to download

xco-web is an easy to use control layer framework, is part of the SOA system, using xml language to describe the controller.

The newest version!
package org.xson.web;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class App {

	public static void main(String[] args) {
		String x = "{fdsfds324324}/@";
		// System.out.println(x.substring(1, x.length() - 1));
		String regex = "\\{.*\\}/@";
		Pattern pattern = Pattern.compile(regex);
		Matcher matcher = pattern.matcher(x);
		System.out.println(matcher.matches());

		String y = "{xxxy}/axx/bxx";
		int pos = y.indexOf("}");
		System.out.println(y.substring(1, pos));
		System.out.println(y.substring(pos + 1));
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy