我需要你对给定问题的帮助
我有一个带有列工人的表,它提供了数据
thorax1 [00400-00479] head1 [00100-00228] lab66 [lab661]
the whole date is in single column
我们有一个页面,我们可以命令删除任何给定的字符串.
为了删除记录,我们只给出方括号中的代码.
例如,如果我们需要删除 head1 [00100 - 00228],我们只给00100 - 00228删除字符串.
这里我的问题是写一个查询,我们可以给00100 - 00228或00400 - 00479删除head1 [00100 - 00228]或thorax1 [00400 - 00479] 记录.
为了获得mm/dd/yyyy格式的当前日期,我使用以下代码
SimpleDateFormat sdf = new SimpleDateFormat("mm/dd/yyyy");
Date date = new Date();
String date3= sdf.format(date);
date = sdf.parse(date3);
Run Code Online (Sandbox Code Playgroud)
但每次我打印日期,它都会给我错误的随机输出
产量
Currentd Date:: 49/22/2013
产量
Currentd Date:: 07/22/2013
请建议我应该使用什么来获取当前日期.我使用的Java版本是1.4
I have a string: head1 [00100 - 00228]
I need to retrieve the value that is there is square bracket, i.e. 00100 - 00228
I have used:
String a="head1 [00100 - 00228]";
replaceAll("(\\[.*?\\])", ""))
Run Code Online (Sandbox Code Playgroud)
but this has removed square bracket string. Can anyone help me to get the desire output?