Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.regex.Matcher;
- import java.util.regex.Pattern;
- public class Main {
- public static void main(String[] args) {
- String targetedString = "শিক্ষাজীবন";
- Pattern pattern = Pattern.compile("(?U).*\\bজীবন\\b.*");
- Matcher matcher = pattern.matcher(targetedString);
- System.out.println(matcher.matches());
- }
- }
Add Comment
Please, Sign In to add comment