Found 2 Articles for Java Regex

Date format validation using Java Regex

Samual Sam
Updated on 19-Jun-2020 12:45:34

523 Views

Following example demonstrates how to check whether the date is in a proper format or not using matches method of String class.ExampleLive Demopublic class Main {    public static void main(String[] argv) {       boolean isDate = false;       String date1 = "8-05-1988";       String date2 = "08/04/1987";       String datePattern = "\d{1, 2}-\d{1, 2}-\d{4}";       isDate = date1.matches(datePattern);       System.out.println("Date :"+ date1+": matches with the this date Pattern:"+datePattern+"Ans:"+isDate);       isDate = date2.matches(datePattern);       System.out.println("Date :"+ date2+": matches with the this date ... Read More

Can I filter a column in PN in SAP HANA with REGEX?

Anil SAP Gupta
Updated on 30-Jul-2019 22:30:20

198 Views

Projection Node is basically a graphical Calculation view. SAP HANA does not allow usage of regular expression in a graphical calculation view for filtering out data.So if you still need to use graphical calculation view (Projection Node), then you need to filter out the data either by using a table function or equivalent.

1
Advertisements