Regular Expressions 101

Community Patterns

1

Repeat character with custom symbol

PCRE2 (PHP >=7.3)
OK
Submitted by UVT - 2 months ago
1

testregexaa

PCRE2 (PHP >=7.3)
aaa
Submitted by aaa - 2 months ago
1

12px

PCRE2 (PHP >=7.3)
查找替换
Submitted by anonymous - 2 months ago
1

TVseriesFileName

PCRE2 (PHP >=7.3)
test
Submitted by anonymous - 2 months ago

Sanitize percentage input into bare real number

0

Regular Expression
.NET (C#)

@"
^ *([\+\-]?) *(?>([0-9]+)[.,]?([0-9]*)|[.,]?([0-9]+)) *%? *$
"

Description

Loading markdown...
Submitted by Moravuscz - a year ago