Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Regular Expressions for Find and Replace

Thread Tools

Regular Expressions for Find and Replace

Posts: n/a
Using the Find and Replace in VS.NET, I'm trying to find methods that are in
the form ....


and I want to replace them with:


However, put the text above in the Find and Replace respectively replaces
EVERY method FooA(), FooB(), etc with BarFoo*[a-zA-Z]*[a-zA-Z][(][)], rather
than BarFooA() and BarFooB().

Is there a nice way to do this? I can't just look for the word Foo ... it's
everywhere. Wild cards appear to have similar behavior.

Thanks in advance.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
find and replace with regular expressions Python 6 08-01-2008 10:55 AM
Regular Expressions replace !! maverick1611 ASP .Net 9 05-04-2006 11:20 PM
regular expressions replace JohnZing ASP .Net 3 10-21-2005 09:26 PM
Regular Expressions - Replace =?Utf-8?B?SGVtYW50?= ASP .Net 4 12-23-2004 09:07 AM
Add custom regular expressions to the validation list of available expressions Jay Douglas ASP .Net 0 08-15-2003 10:19 PM