Regular Expressions 101

Sponsors

Library entries

0
javascript

Match HTML tag with specific attributes

1
Submitted by anonymous - 9 days ago
0
javascript

Company name

Company name
Submitted by anonymous - 11 days ago
0
javascript

Match Emojis

Match all emojis using unicode
Submitted by Sagar Panchal - 14 days ago
0
javascript

edgedb dsn parser

parse an edgedb DSN string
Submitted by dotlouis - 16 days ago
0
javascript

city

Letters, space and - , . ' & / 
Submitted by anonymous - 16 days ago
0
javascript

Streetname

Letters, numbers, space and  . ,  ' - /
Submitted by anonymous - 16 days 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