Regular Expression pattern

  • Thread starter Thread starter Vannela
  • Start date Start date
V

Vannela

I want to match a array pattern in the string specified

Specified string may be any one of this

public function fu_santhu(int a,int b[],string s)

public function ggggg(string sss[],float f,decimal
d,double dd)

public function rrrttt(decimal dd[], int a,int b,string sd)

So want to match the pattern where this "[] " pattern
exists in a function declaration.

Can anyone say me how to specify the pattern?

Thank you.

..
 
Vannela,

This might be a bit tricky to specify a pattern for this because of the
different scope keywords, etc. for a method. For instance, consider

public shared overridable function() as string

or something similar, the pattern may be a bit more difficult to construct
than you are hoping. Perhaps you can consider using the extensibility
model of VS.NET to get the paramter types for a given function.

Thanks! Robert Gruen
Microsoft, VB.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
 
Back
Top