Other Resources:
Quoted sequence \Q...\E
What is the quoted sequence to disable pattern metacharacters?
How to write a regular expression to capture the main() method in a Java class like: class ABC { public static void main(String args[]){...} }
✍: FYIcenter.com
The quoted sequence is a subpattern where pattern metacharacters are treated literally. A quoted sequence starts with \Q and ends with \E. For example:
\Q\.^*+?[]|(){}\E - matches \.^*+?[]|(){}
The regular expression to capture the main() method in Java class is:
\Qmain(String args[])\E
\Q...\E - Quoted sequence to keep () [] as is
2013-01-26, 0👍, 0💬
Popular Posts:
How to capture the Soso Spider entries from Web log file? Here are some Web log file entries: 127.0....
A free online regular expression test tool that allows to try you regular expression pattern and see...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
Are you having problems using regular expressions when processing text strings in your applications ...