1

I would like to make the following find and replace:

// input
'key1': 1 
'key2': 2 

// output
key1: 1 
key2: 2

the find should be like this pattern '\w{1,}':
what about the replace with pattern?

2
  • Any specific programming language? Commented May 31, 2012 at 15:38
  • 1
    @Raze2dust it doesnt matter the language, the OP wants to use the find/replace feature in netbeans... Commented May 31, 2012 at 15:43

1 Answer 1

2

This should remove the quotes from the keys:

Find: '(.+)':

Replace: $1

Sign up to request clarification or add additional context in comments.

8 Comments

That doesn't seem to work. The Replace button seems to be disabled when I try that and $1 is in red
Weird. I tried it and it worked fine for me. I'm on 7.1. Was anything found in the find?
yea, I am testing it in one of my files on Netbeans 7.0.1
Does anything get found when you use Previous and Next? Do you have any text selected?
I don't have a previous and next. this is what I see: i.sstatic.net/6f779.png
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.