Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
`
useFsFlag[(](?:\s*(".*"),\s*(".*\s*[^"]*"|[^)]*))\s*[)]
`
gm
Input 1
1
New
const backgroundColorFlag = useFsFlag("backgroundColor", "green") const btnColorFlag = useFsFlag("btnColor", red) const backgroundSize = useFsFlag("backgroundColor", 16).getValue() const backgroundSize = useFsFlag("backgroundColor", 16.5).getValue() const showBtn = useFsFlag("showBtn", true).getValue() const showBtn = useFsFlag("showBtn",true) const showBtn = useFsFlag("showBtn", "Blue, red") const showBtn = useFsFlag("showBtn", "(Blue )[@)à.""h""ere)").getValue() const showBtn = useFsFlag( "showBtn", "(Blue )he{}re)" ) //comment
Extraction
const backgroundColorFlag = useFsFlag("backgroundColor", "green") const btnColorFlag = useFsFlag("btnColor", red) const backgroundSize = useFsFlag("backgroundColor", 16).getValue() const backgroundSize = useFsFlag("backgroundColor", 16.5).getValue() const showBtn = useFsFlag("showBtn", true).getValue() const showBtn = useFsFlag("showBtn",true) const showBtn = useFsFlag("showBtn", "Blue, red") const showBtn = useFsFlag("showBtn", "(Blue )[@)à.""h""ere)").getValue() const showBtn = useFsFlag( "showBtn", "(Blue )he{}re)" ) //comment