Regular Expression Pocket Reference: Regular Expressions for by Tony Stubblebine

By Tony Stubblebine

Attempting to bear in mind the subtleties of all the assorted implementations of regex isn't any longer an issue with this round. Whip it out and immediately you have entry to the entire meta-characters, etc., etc., etc.

What extra am i able to say?

Show description

Read or Download Regular Expression Pocket Reference: Regular Expressions for Perl, Ruby, PHP, Python, C, Java and .NET (Pocket Reference (O'Reilly)) PDF

Best programming: programming languages books

OracleJSP Support for JavaServer Pages Developer's Guide and Reference

This record is meant for builders drawn to utilizing OracleJSP to create internet functions in response to JavaServer Pages expertise. It assumes that operating internet and servlet environments exist already, and that readers are already conversant in the following:■ normal internet technology■ normal servlet know-how (some technical historical past is supplied in Appendix B)■ tips to configure their internet server and servlet environments .

iPhone Apps mit HTML, CSS und JavaScript: Ohne Objective-C und Cocoa zur eigenen App

IPhone Apps mit HTML, CSS and JavaScript: Ohne Objective-C und Cocoa zur eigenen App

C-XSC: A C++ Class Library for Extended Scientific Computing

C-XSC is a device for the advance of numerical algorithms providing hugely actual and instantly demonstrated effects. It offers numerous predefined numerical information kinds and operators. those kinds are applied as C++ periods. hence, C-XSC permits high-level programming of numerical purposes in C and C++.

Extra resources for Regular Expression Pocket Reference: Regular Expressions for Perl, Ruby, PHP, Python, C, Java and .NET (Pocket Reference (O'Reilly))

Example text

Replace(text, regex, replacement, RegexOptions. \-] +? ] [ class:] . ) i m s ^ $ \n . ) xsmi *? ) #... |... * + ? {n} n {n,} n {x,y} x y *? +? {n,}? n {x,y}? (condition ... (condition ... condition array preg_grep (string pattern array input) input pattern int preg_match_all (string pattern string subject array matches int flags ) pattern subject matches matches n matches n matches[7][3] pattern subject PREG_SET_ORDER matches PREG_SET_ORDER matches PREG_ OFFSET_CAPTURE subject int preg_match (string pattern string subject matches int flags ) pattern subject matches matches[0] PREG_OFFSET_CAPTURE array matches string preg_quote (string str [, string delimiter]) str delimiter str mixed preg_replace_callback (mixed pattern callback callback mixed subject int limit ) subject pattern callback limit limit pattern callback subject mixed preg_replace (mixed pattern mixed replacement mixed subject , int limit ) subject pattern replacement limit limit $n pattern pattern replacement /e \n replacement replacement replacement subject array preg_split (string pattern string subject , int limit , int flags ) pattern limit preg_split( ) limit limit PREG_SPLIT_NO_EMPTY PREG_SPLIT_DELIM_CAPTURE PREG_SPLIT_OFFSET_CAPTURE subject //Find Spider-Man, Spiderman, SPIDER-MAN, etc.

N} n {n,} n {x,y} x y *? +? {n,}? n {x,y}? *; // Find Spider-Man, Spiderman, SPIDER-MAN, etc. println("Matched: " + dailyBugle); } } } // Match dates formatted like MM/DD/YYYY, MM-DD-YY,... printf("Found %s-%s-%s\n", year, month, day); } } } // Example -. *; public class SimpleSubstitutionTest { public static void main(String[] args) { String text = "Hello world. \\-] +? ] . ) Singleline s Multiline m IgnorePatternWhite space x . ) #... /x (... |... * + ? n name {n} n {n,} n {x,y} x y *?

Condition ... condition array preg_grep (string pattern array input) input pattern int preg_match_all (string pattern string subject array matches int flags ) pattern subject matches matches n matches n matches[7][3] pattern subject PREG_SET_ORDER matches PREG_SET_ORDER matches PREG_ OFFSET_CAPTURE subject int preg_match (string pattern string subject matches int flags ) pattern subject matches matches[0] PREG_OFFSET_CAPTURE array matches string preg_quote (string str [, string delimiter]) str delimiter str mixed preg_replace_callback (mixed pattern callback callback mixed subject int limit ) subject pattern callback limit limit pattern callback subject mixed preg_replace (mixed pattern mixed replacement mixed subject , int limit ) subject pattern replacement limit limit $n pattern pattern replacement /e \n replacement replacement replacement subject array preg_split (string pattern string subject , int limit , int flags ) pattern limit preg_split( ) limit limit PREG_SPLIT_NO_EMPTY PREG_SPLIT_DELIM_CAPTURE PREG_SPLIT_OFFSET_CAPTURE subject //Find Spider-Man, Spiderman, SPIDER-MAN, etc.

Download PDF sample

Rated 4.79 of 5 – based on 14 votes