| java.lang.Object com.quadcap.util.text.Text
Text | public class Text (Code) | | This class is yet another approach to string parsing. It's basically
an anchored glob-style match.
author: Stan Bailes |
Method Summary | |
public static String | extract(String s, String p, int n) | public static String | extract(String s, String p, int n, char d) | public static String[] | extractMatching(String s, String[] p, char d) | public static String[] | extractN(String s, String p) | public static String[] | extractN(String s, String p, char d) |
extract | public static String extract(String s, String p, int n)(Code) | | Extract a substring
example:
extract(s, "*.gif", 0);
extract(s, "http://*index.html", 1);
|
extractN | public static String[] extractN(String s, String p)(Code) | | Extract strings matching glob patterns
Examples:
sv[0,1,2] = extractN(w, "*(*)*")
sv[0-3] = extractN(w, "*:*:*:*");
|
|
|