Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

Regular Expressions for Find and Replace

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

Foo*[a-zA-Z]*[a-zA-Z][(][)]

and I want to replace them with:

BarFoo*[a-zA-Z]*[a-zA-Z][(][)]

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.

Mark


 
Reply With Quote
 
 
 
Reply

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 chrispoliquin@gmail.com 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



Advertisments