What is the meaning of compiling a regular expression? Not only in java but also in other languages like python has compiled representation of a regular expression. Actually it always bothers me what happens when a regular expression is compiled? All I know is it makes further matching of patterns faster. But I wonder how?
johndoe444
1
Posting Whiz in Training
Recommended Answers
Jump to PostRegular expressions are the same for all programming languages, the difference is in the syntax of the programming language.
Java example
http://www.javamex.com/tutorials/regular_expressions/The same regex in Python
>>> import …
All 4 Replies
Krstevski
7
Junior Poster
BestJewSinceJC
700
Posting Maven
johndoe444
1
Posting Whiz in Training
BestJewSinceJC
700
Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.