Regular Expressions 101

Sponsors

Library entries

0
pcre

lower case alpha and number

lower case alpha and number
Submitted by anonymous - a month ago
0
java

#结尾的电话匹配

#结尾的电话匹配
Submitted by anonymous - a month ago
1
javascript

提取步骤1

提取步骤1
Submitted by liangchao - a month ago
0
golang

Jira issue number

Matches and catches Jira issue number
Submitted by anonymous - a month ago
0
javascript

ipv4

IPv4 string check in JavaScript RegEx
Submitted by clarkttfu@gmail.com - a month ago
-1
javascript

Email Regex

Email Validation Regex
Submitted by anonymous - a month ago
0
java

IP Address

IP Address RegEx
Submitted by anonymous - a month ago
0
javascript

Get First Name

Grab a first name from a full name string
Submitted by Tom - a month ago
0
java

括号匹配

(\[]\])|(【】)|(())|(\(\))
Submitted by nasion - a month ago

AWS Load Balancer Controller Access log

Vote

0

Regular Expression
pcre

/
^(?P<alb_type>(https?|h2|wss?))\s*(?P<alb_timestamp>[^\s]+)\s*(?P<alb_elb>[^\s]+)\s*(?P<alb_client_addr>[^:]+):\s*(?P<alb_client_port>[^\s]+)\s*(?P<alb_target_addr>[^:]+):\s*(?P<alb_target_port>[^\s]+)\s*\s*(?P<alb_request_processing_time>[^\s]+)\s*(?P<alb_target_processing_time>[^\s]+)\s*(?P<alb_response_processing_time>[^\s]+)\s*(?P<alb_elb_status_code>[^\s]+)\s*(?P<alb_target_status_code>[^\s]+)\s*(?P<alb_received_bytes>[^\s]+)\s*(?P<alb_sent_bytes>[^\s]+)\s*"(?P<alb_request>.*?)"\s+"(?P<alb_user_agent>[^\"]+)"\s*(?P<alb_ssl_cipher>[^\s]+)\s*(?P<alb_ssl_protocol>[^\s]+)\s*(?P<alb_target_group_arn>[^\s]+)\s*"(?P<alb_trace_id>[^\"]+)"\s*"(?P<alb_domain_name>[a-zA-Z0-9\.\-:]+)"\s*"(?P<alb_chosen_cert_arn>[^\"]+)"\s*(?P<alb_matched_rule_priority>[^\s]+)\s*(?P<alb_request_creation_time>[^\s]+)\s*\s*"(?P<alb_actions_executed>[^\s]+)"\s*"(?P<alb_redirect_url>[^\s]+)"\s*"(?P<alb_error_reason>[^\"]+)"\s*"?(?P<alb_target_port_list>[0-9 :\.-]+)"?\s*"?(?P<alb_target_status_code_list>[0-9 -]+)"?
/
gm

Description

Loading markdown...
Submitted by Bit_029 - 5 months ago