RegExr: Regex image URL (fork)

203 阅读2分钟
原文链接: regexr.com
Roll-over elements below to highlight in the Expression above. Click to open in Reference. Capturing group #1. Groups multiple tokens together and creates a capture group for extracting a substring or using a backreference. Character. Matches a "h" character (char code 104). Case sensitive. Character. Matches a "t" character (char code 116). Case sensitive. Character. Matches a "t" character (char code 116). Case sensitive. Character. Matches a "p" character (char code 112). Case sensitive. Capturing group #2. Groups multiple tokens together and creates a capture group for extracting a substring or using a backreference. Character. Matches a "s" character (char code 115). Case sensitive. Quantifier. Match between 0 and 1 of the preceding token.   Character. Matches a ":" character (char code 58).   Capturing group #3. Groups multiple tokens together and creates a capture group for extracting a substring or using a backreference. Character set. Match any character in the set. Character. Matches a "/" character (char code 47). Character. Matches a "|" character (char code 124). Character. Matches a "." character (char code 46). Character. Matches a "|" character (char code 124). Word. Matches any word character (alphanumeric & underscore). Character. Matches a "|" character (char code 124). Whitespace. Matches any whitespace character (spaces, tabs, line breaks). Character. Matches a "|" character (char code 124). Character. Matches a "-" character (char code 45).     Quantifier. Match 0 or more of the preceding token. Escaped character. Matches a "." character (char code 46). Non-capturing group. Groups multiple tokens together without creating a capture group. Character. Matches a "j" character (char code 106). Case sensitive. Character. Matches a "p" character (char code 112). Case sensitive. Character. Matches a "g" character (char code 103). Case sensitive. Alternation. Acts like a boolean OR. Matches the expression before or after the |. Character. Matches a "g" character (char code 103). Case sensitive. Character. Matches a "i" character (char code 105). Case sensitive. Character. Matches a "f" character (char code 102). Case sensitive. Alternation. Acts like a boolean OR. Matches the expression before or after the |. Character. Matches a "p" character (char code 112). Case sensitive. Character. Matches a "n" character (char code 110). Case sensitive. Character. Matches a "g" character (char code 103). Case sensitive. Alternation. Acts like a boolean OR. Matches the expression before or after the |. Character. Matches a "j" character (char code 106). Case sensitive. Character. Matches a "p" character (char code 112). Case sensitive. Character. Matches a "e" character (char code 101). Case sensitive. Character. Matches a "g" character (char code 103). Case sensitive.