Home Whiteboard Online Compilers Practice Articles Tools
Library Courses Certifications Login
Java Regex Tutorial
  • Java Regex - Home
  • Java Regex - Overview
  • Java Regex - Capturing Groups
  • Java Regex - MatchResult Interface
  • Java Regex - Pattern Class
  • Java Regex - Matcher Class
  • PatternSyntaxException Class
  • Java Regex Examples
  • Java Regex - Characters
  • Java Regex - Character Classes
  • Predefined Character Classes
  • POSIX Character Classes
  • Java Regex - JAVA Character Classes
  • Unicode Character Classes
  • Java Regex - Boundary Matchers
  • Java Regex - Greedy quantifiers
  • Java Regex - Reluctant quantifiers
  • Java Regex - Possessive quantifiers
  • Java Regex - Logical Operators
  • Java Regex Useful Resources
  • Java Regex - Quick Guide
  • Java Regex - Useful Resources
  • Java Regex - Discussion
  • Selected Reading
  • UPSC IAS Exams Notes
  • Developer's Best Practices
  • Questions and Answers
  • Effective Resume Writing
  • AI Based Resume Builder
  • Personal AI Study Assistant
  • Generate Coding Logic
  • HR Interview Questions
  • Computer Glossary
  • Who is Who

Java Regexs of Greedy Quantifiers



Previous
Quiz
Next

A greedy quantifier indicates to search engine to search the entire string and check whether it matches the given regexp. Following are various examples of Greedy Quantifiers using regular expression in java.

Sr.No Construct & Matches
1 X?

X, once or not at all.

2 X*

X, zero or more times

3 X+

X, one or more times.

4 X{n}

X, exactly n times.

5 X{n,}

X, at least n times.

6 X{n,m}

X, at least n but not more than m times

Print Page
Previous
Next
Advertisements
TOP TUTORIALS
  • Python Tutorial
  • Java Tutorial
  • C++ Tutorial
  • C Programming Tutorial
  • C# Tutorial
  • PHP Tutorial
  • R Tutorial
  • HTML Tutorial
  • CSS Tutorial
  • JavaScript Tutorial
  • SQL Tutorial
TRENDING TECHNOLOGIES
  • Cloud Computing Tutorial
  • Amazon Web Services Tutorial
  • Microsoft Azure Tutorial
  • Git Tutorial
  • Ethical Hacking Tutorial
  • Docker Tutorial
  • Kubernetes Tutorial
  • DSA Tutorial
  • Spring Boot Tutorial
  • SDLC Tutorial
  • Unix Tutorial
CERTIFICATIONS
  • Business Analytics Certification
  • Java & Spring Boot Advanced Certification
  • Data Science Advanced Certification
  • Cloud Computing And DevOps
  • Advanced Certification In Business Analytics
  • Artificial Intelligence And Machine Learning
  • DevOps Certification
  • Game Development Certification
  • Front-End Developer Certification
  • AWS Certification Training
  • Python Programming Certification
COMPILERS & EDITORS
  • Online Java Compiler
  • Online Python Compiler
  • Online Go Compiler
  • Online C Compiler
  • Online C++ Compiler
  • Online C# Compiler
  • Online PHP Compiler
  • Online MATLAB Compiler
  • Online Bash Terminal
  • Online SQL Compiler
  • Online Html Editor
  • ABOUT US
  • OUR TEAM
  • CAREERS
  • JOBS
  • CONTACT US
  • TERMS OF USE
  • PRIVACY POLICY
  • REFUND POLICY
  • COOKIES POLICY
  • FAQ'S
tutorials point logo
Download Android App Download IOS App

Tutorials Point is a leading Ed Tech company striving to provide the best learning material on technical and non-technical subjects.

© Copyright 2025. All Rights Reserved.