Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everyone ,

I have a task in which I need to show all the methodnames in a *.js file.
I have tried many ways but I couldn't find a solution.n Now I want to have a regex for java script functions, so that I can get names of those matched cases.

Please help me out
Posted
Updated 12-Nov-10 1:17am
v2

1 solution

If you're using .Net, you can probably load the javascript into a BrowserWindow, and then use the DOM to extract the method names (let the DOM do the parsing for you). How you would specifically go about doing this, I leave to you as a programming exercise.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900