Sample code for 30+ languages & platforms
Java

StringBuilder GetBetween

Demonstrates the GetBetween method.

Chilkat Java Downloads

Chilkat2 Java
import com.chilkatsoft.chilkat2.StringBuilder;

public class ChilkatExample {

    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        sb.append("<company><name>Chilkat Software</name></company>");

        // For example, to get the company name in the string above...
        String companyName = sb.getBetween("<name>", "</name>");
        System.out.println("Company Name = " + companyName);
    }
}