Regular Expressions 101

Sponsors

Library entries

0
dotnet

Aus Mobile number

validates against multiple common formats
Submitted by anonymous - 2 days ago
0
dotnet

15.02.2022 15:00:00

15.02.2022 15:00:00
Submitted by anonymous - a month ago
0
dotnet

Minimum 10 herhangi dijit

Minimum 10 herhangi dijit
Submitted by anonymous - a month ago
0
dotnet

USD

USD
Submitted by anonymous - a month ago
0
dotnet

01 Jan 2022 Mon 01:02:03

01 Jan 2022 Mon 01:02:03
Submitted by anonymous - a month ago
0
dotnet

^[A-Z,a-z,\-, ,\&]+$

Koray Bilgi, Text-Regex
Submitted by anonymous - a month ago
-1
dotnet

MMM DDD YYYY

FEB MON 2023
Submitted by anonymous - a month ago
0
dotnet

Match IPv4 Valid

expression to capture valid IP
Submitted by anonymous - 2 months ago
0
dotnet

Get h1-6 tag

(.*?)
Submitted by OlegBel - 2 months ago
0
dotnet

nick anme

mvp
Submitted by doppler - 2 months ago
2
dotnet

Replace sub-strings in string

Replace sub-strings in string
Submitted by anonymous - 3 months ago
0
dotnet

fix plot histogram calls

k
Submitted by anonymous - 3 months ago

Floating point and scientific notation regex

Vote

0

Regular Expression
pcre2

/
^ (?: [+-]? # optional sign (?: # start a conditional group \d+ # either a nonzero number of digits | # or a decimal phrase \d* # optional digits preceding the decimal \.(?=\d) # a literal decimal followed by at least one digit \d* # optionally some more digits ) # note this group is mandatory! (?: # start an optional scientific notation group [eE] # the scientific notation character [+-]? # optional sign \d+ # after sci notation, you cannot go directly to a decimal )? ) $
/
gmx

Description

Loading markdown...
Submitted by Kevin Winner - 4 months ago