srbharadwaj
Broken In
Java Queries Here.. Regular expression
String str0 = "ABC def: xyz12-1/2,2/1,1/3"
String str1 = "AAA def: xyz12-1/2,2/1,1/3"
String str2 = "ABC def: xyz12-,2/1,1/3"
String str3 = "ABC def: xyz12-,1/0,2/1,1/3"
Now i need to check if the String contains "ABC def:<anything>2/1<anything>"
Only str0,str2,str3 satisfies this condition
What should be the regular expression for this?
String str0 = "ABC def: xyz12-1/2,2/1,1/3"
String str1 = "AAA def: xyz12-1/2,2/1,1/3"
String str2 = "ABC def: xyz12-,2/1,1/3"
String str3 = "ABC def: xyz12-,1/0,2/1,1/3"
Now i need to check if the String contains "ABC def:<anything>2/1<anything>"
Only str0,str2,str3 satisfies this condition
What should be the regular expression for this?