Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,

I am newbie to Regular Expressions,Can anyone please tell me
how Escape characters and metacharacters are handled by Compiler and what does it internally do?




regards
Chaithanya M
Posted

1 solution

To be honest, this depends on the implementation. A good general introduction to the kind of algorithms used by regular expression parsers can be found in Mastering Regular Expressions[^] by Jeffrey Friedl. If you are serious about regular expressions then you should have this book.

As to how a regex engine handles things in practice, look at the code for Boost.Regex[^]. The code is freely available.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900