- java.lang.Object
-
- se.alipsa.r2md.TableMatcher
-
public class TableMatcher extends Object
Renjin does not support negative lookahead so doing this is java. The findWord method in MdTable seems to work now so this is not used. Example usage: if (TableMatcher$find(attr[["class"]])) print("has table in the class attribute")
-
-
Constructor Summary
Constructors Constructor Description TableMatcher()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanfind(String text)determine whether the text contains the word tablestatic booleanfind(org.renjin.sexp.SEXP text)in case something weird is sent to find, we overload with a "catch all"
-
-
-
Method Detail
-
find
public static boolean find(org.renjin.sexp.SEXP text)
in case something weird is sent to find, we overload with a "catch all"- Parameters:
text- the text to match on- Returns:
- true if a match is found else false
-
find
public static boolean find(String text)
determine whether the text contains the word table- Parameters:
text- the text to match on- Returns:
- true if a match is found else false
-
-