I want to have
if (a.matches(%+"b"+%))
..
....
end if;
where a.matches (%+"b"+ %)
means I want to see if b is in a.
I am trying to find equavalent of ,
Where a like '%b%' from oracle in
Java.
Can someone help me?
I tried ,
Pattern p = Pattern.compile("."+ "b" + ".");
Matcher m = p.matcher(rs.getString(l));
boolean b = m.matches();
but it does not work the way i want.
Where am I going wrong?
Thanks !!