{"id":562,"date":"2009-02-18T14:44:32","date_gmt":"2009-02-18T19:44:32","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=562"},"modified":"2009-02-18T14:44:32","modified_gmt":"2009-02-18T19:44:32","slug":"java-regexp","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=562","title":{"rendered":"Java RegExp"},"content":{"rendered":"<p>\u00a7Meta characters<br \/>\n([{\\^$|)?*+<\/p>\n<p>\u2022Escape meta character<br \/>\n\\<br \/>\n\\Q\\E<\/p>\n<p>\u00a7Classes<br \/>\n\tare enclosed within []<br \/>\n\u2022Simple class<br \/>\n[abc]:\ta, b, or c<br \/>\n\u2022Negation<br \/>\n[^abc]:\tany character except a,b,c<br \/>\n\u2022Ranges<br \/>\n[a-c]:\tcharacter a to c<br \/>\n\u2022Unions<br \/>\n[0-4[6-8]]<br \/>\n\u2022Intersections<br \/>\n[0-9&#038;&#038;[345]]:\t\t3,4,5<br \/>\n\u2022Substraction<br \/>\n[0-9&#038;&#038;[^345]]: \texcept 3,4,5<\/p>\n<p>\u00a7Predefined character classes<br \/>\n.\tany character<br \/>\n\\d\ta digit [0-9]<br \/>\n\\D\ta non digit [^0-9]<br \/>\n\\s\ta whitespace character<br \/>\n\\S\ta non-whitespace character<br \/>\n\\w\ta word character [a-zA-Z_0-9]<br \/>\n\\W\ta non-word character[^\\w]<\/p>\n<p>\u00a7Qualifiers<br \/>\ngreedy\treluctant\tpossessive<br \/>\nx?\t\tx??\t\tx?+<br \/>\nX*<br \/>\nx+<br \/>\nx{n}<br \/>\nx{n,}<br \/>\nx{n,m}<\/p>\n<p>\u00a7Capturinq groups<br \/>\n()<\/p>\n<p>\u00a7Back reference<br \/>\n(\\d\\d)\\1<\/p>\n<p>\u00a7Boundary Matchers<br \/>\n^\tbegin of a line<br \/>\n$\tend of a line<br \/>\n\\b\ta word boundary<br \/>\n\\B\ta non-word boundary<br \/>\n\\A\tbeqin of the input<br \/>\n\\G\tend of previous match<br \/>\n\\Z\tend of the input but for the final terminator, if any<br \/>\n\\z\tend of input<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a7Meta characters ([{\\^$|)?*+ \u2022Escape meta character \\ \\Q\\E \u00a7Classes are enclosed within [] \u2022Simple class [abc]: a, b, or c \u2022Negation [^abc]: any character except a,b,c \u2022Ranges [a-c]: character a to c \u2022Unions [0-4[6-8]] \u2022Intersections [0-9&#038;&#038;[345]]: 3,4,5 \u2022Substraction [0-9&#038;&#038;[^345]]: except &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=562\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[14],"tags":[],"class_list":["post-562","post","type-post","status-publish","format-standard","hentry","category-java"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-94","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=562"}],"version-history":[{"count":0,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/562\/revisions"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}