Regular Expression to Grab a Method Name from a C# Code File.

/ Published in: Regular Expression
Save to your folder(s)

The expression in parenthesis is a positive look ahead. It seeks a single open parenthesis. The to slash s expressions will seek whatever non space characters precede the parenthesis by zero or more spaces.

Copy this code and paste it in your HTML
  1. \S*\s*(?=\()


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.