Dee-M
Dee-M

Reputation: 952

Find & replace with regular expressions in netbeans

I'm looking for a regular expression that can find and replace all the text "anytext" with "anything" in netbeans, some of the symbols also contain this text. I've done it a while back for a single file but now I want to change everything in my application & I'm struggling to get it right.

Upvotes: 2

Views: 3247

Answers (2)

Keng
Keng

Reputation: 53101

Were you looking for something like this? Where it wouldn't grab it inside word?

\banytext\b

Upvotes: 1

darioo
darioo

Reputation: 47183

Just use find & replace to replace all instances of "anytext" with "anything". There is no difference between this and a regex find & replace, because there doesn't exist a pattern that can be easily exploited using regex. There is no difference in this case. Based on your comment, you still must manualy enter the word you want replaced and a word that will replace it.

I think you have misunderstood a bit what regular expressions are all about.

Upvotes: 1

Related Questions