Regular Expressions 101

Community Patterns

? - One or Zero times Quantifier Example

1

Regular Expression
ECMAScript (JavaScript)

/
(ft\"?)|(foot|feet)
/
gmi

Description

Here, it matches ft or ft. & foot & feet

Submitted by Dinesh Dontha - 8 years ago