Regular Expressions 101

Community Patterns

1

Exercícios ALPCD

PCRE2 (PHP >=7.3)
Aula 3
Submitted by anonymous - 27 minutes ago
1

verificador de e-mail

PCRE2 (PHP >=7.3)
email
Submitted by almlt24 - 11 hours ago
1

pmsa_docx_replace

PCRE2 (PHP >=7.3)
pmsa_docx_replace
Submitted by anonymous - a day ago
1

http(s) address

PCRE2 (PHP >=7.3)
simple http(s) patter
Submitted by lhotakj - 2 days ago
1

my

PCRE2 (PHP >=7.3)
replace first line and second
Submitted by MH - 3 days ago
1

Parser

PCRE2 (PHP >=7.3)
for mail
Submitted by anonymous - 5 days ago

APA Citation v1

0

Regular Expression
Java 8

"
(?<original>(?:(?:\(|\; ?)(?<author>(?=[^\n\(]*,[0-9 ]*[^\(\)]*\))(?!:[^\n\(\)\[\]]+\[.*\].*(?:\d{4}[a-z]?|[ns]\.\s?d\.|\d{4}[-–]\d{4}|\d{4}\, ?\w+ \d{1,2}))[^\n\(\)]*?(?:\b\p{Lu}[\p{Ll} \_0-9]+\b,\s+(?:\p{Lu}\.){1,3}\s+(?:(?:&|,|\.\.\.|)\s*)?)*(?:\((?:Eds?\.|Trad\.|Comp\.).*\))?)(?:,? ?(?<year>\d{4}[a-z]?|[ns]\.\s?d\.|\d{4}[-–]\d{4}|\d{4}\, ?\w+ \d{1,2}))(?:[, ]*pp?\.[\s]*(?<page>\d+[\-]?\d*))?(?<afteryear>\s*\;\s*\d{1,4}[^\n\)]*\))?(?:, para\.[\s]*(?<paragraph>\d+))?)|(?:(?<pre>(?:[\p{Ll} \_0-9]*)( [\w]{1,6} )?)(?=\.?\p{Lu}\w+)(?<author1>(?<a1>(?:[^\n\(\)\.0-9]+)|(?:(?:[A-Z]\.\s?)?\b\p{Lu}[\p{Ll} \_0-9]+\b\s*et al\.? ?))?(?<a2>\b\p{Lu}[\p{Ll} \_0-9]+\b,\s+(?:\p{Lu}\.){1,3}\s+(?:(?:&|,|\.\.\.|)\s*)?)*(?:\((?:Eds?\.|Trad\.|Comp\.).*\))?)\((?<year1>\d{4}[a-z]?|[ns]\.\s?d\.|\d{4}[\-]\d{4}|\d{4}\, ?\w+ \d{1,2})\)))
"
gmi

Description

Loading markdown...
Submitted by mathias v - 4 months ago