#bugbountytip
— Michael Blake (@Michael1026H1) June 24, 2019
Here's a regular expression for extracting variable names from JS. I'll be using the results for parameter fuzzing.
/(?<=(var|const|let) )([A-Za-z0-9_]+?)(?=(;|,|=| ))/g
It's far from perfect, but I'm not great with regex.