Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String str_extr_betw(String lc_data, String lc_start_tag, String lc_end_tag) {
        String result = "";
        int startLoc = lc_data.indexOf(lc_start_tag) + lc_start_tag.length();
        int endLoc = lc_data.indexOf(lc_end_tag);

        // Common.Logit("startLoc=" + startLoc + " endloc=" + endLoc) ; 

        result = lc_data.substring(startLoc, endLoc);
        return result;
    }
}