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
/
\buse(?!(?:Ref|Effect|State)\b)[A-Z][a-zA-Z]*\b
/
gm
Input 1
1
New
I need to search within my project, all words starting with the string "use" followed by any uppercase letter and other than these three cases: useRef useEffect useState Valid searches would be: useExample useTest useWhatever And invalid searches: usefoo usebar
Extraction
I need to search within my project, all words starting with the string "use" followed by any uppercase letter and other than these three cases: useRef useEffect useState Valid searches would be: useExample useTest useWhatever And invalid searches: usefoo usebar