Hi,
I am trying to split a string using delimeter "." using below code in match script but split function is not working. Can you please suggest what to use to split a string using delimeter and trying to fetch string at 0th position.
Here length() function is working as expected, but split function is not working.
Parameter value:
_id = DPLAN01R.20210101
Code:
String ID = incomingRequest.getArguments().get("_id");
_logger.debug("debug data value {}", ID);
_logger.debug("debug data value {}", ID.length());
String[] data = ID.split(".");
_logger.debug("debug individual data value {}", data[0]);