

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Java Regular Expression to match a line that doesn't contain a word.
public class RegTest { public static void main(String[] args) { // TODO Auto-generated method stub String s="tutorials"; boolean i=s.matches("^((?!kk).)*$"); System.out.println(i); } returns true, if word does not match character kk }
- Related Questions & Answers
- Java Regular Expression that doesn't contain a certain String.
- How to match a word in python using Regular Expression?
- How to match a regular expression against a string?
- MongoDB regular expression to match a specific record?
- How to match a line not containing a word in Java Regex
- Program to match vowels in a string using regular expression in Java
- Adding a column that doesn't exist in a query?
- How to match digits using Java Regular Expression (RegEx)
- How to match a whitespace in python using Regular Expression?
- How to use regular expression in Java to pattern match?
- How to match anything except space and new line using Python regular expression?
- How to match non-digits using Java Regular Expression (RegEx)
- How to match bold fields in a HTML script using a regular expression in Java?
- How to match a nonwhitespace character in python using Regular Expression?
- How to match a single character in python using Regular Expression?
Advertisements