Regular Expressions 101

Sponsors

Library entries

0
pcre

lower case alpha and number

lower case alpha and number
Submitted by anonymous - 22 days ago
0
java

#结尾的电话匹配

#结尾的电话匹配
Submitted by anonymous - 22 days ago
0
java

IP Address

IP Address RegEx
Submitted by anonymous - 24 days ago
0
python

find const string in code for xml/java

.
Submitted by anonymous - 25 days ago
0
java

括号匹配

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

matlab代码

matlab代码
Submitted by java - a month ago
0
java

DB

DB
Submitted by DB - a month ago
0
java

OS正则表达式

zzx
Submitted by zzx - a month ago
0
python

LinkTree

just to find linktree links in poirot
Submitted by anonymous - a month ago
0
python

#value # value

account for comments
Submitted by anonymous - a month ago
0
python

Phone number regex

REGEX to test various phone numbers
Submitted by Drew Recker - 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