Java tutorial
//package com.java2s; public class Main { public static final String reg = "_sooglejay_"; public static String getName(String tagStr) { String[] array = tagStr.split(reg); if (array != null && array.length > 0) { return array[0]; } else { return ""; } } }