Click here to Skip to main content
15,904,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
$MyFunction1(100,myVariable)


how shall i parse the above string to


1) the fucntion name
$Myfunction1


2)the first parameter 100( it canbe any numerical value)

3)the variable name
Posted
Updated 10-Jan-12 0:47am
v2

1 solution

Here it is,

^\$\w+\(\d+,\w+\)$

Many online guides available for Regular Expression, you can study them

http://www.learn-javascript-tutorial.com/RegularExpressions.cfm[^]

http://www.regular-expressions.info/reference.html[^]


There are many online/offline Regular Expression parsers available.

http://www.regexplanet.com/simple/index.html[^]

http://www.regular-expressions.info/editpadpro.html[^]
 
Share this answer
 
Comments
arun_pk 10-Jan-12 8:16am    
Thanks a lot this is working for me
my 5

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