0

I'm very naive user for regex. I got an important task in limited time. I hope someone could look into it. Meanwhile I'll be trying from myside.

I've strings like

#: [Section]zNone
msgctxt "[Section]zNone"
msgid "None"
msgstr "Ninguno"

#: [Section]Search
msgid "Search"
msgstr "Búsquedas"

#: [Section]AdvancedSearch
msgid "Advanced Search"
msgstr "Búsqueda Avanzada"

For all msgstr"bla bla bla" strings should be replaced by msgstr "" using regex in file replace & find.

2
  • 1
    What language/tool are you using for this? Commented Mar 17, 2014 at 4:44
  • @anubhava..In sublime text Commented Mar 17, 2014 at 4:45

1 Answer 1

1

something like this I suppose

(?<=msgstr\s)"(.*)"

and replace with ""

http://regex101.com/r/hM3gN9

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

4 Comments

good one. I was typing the same, when you answered this one :)
@aelor.. Thanks pal. Worked like a charm
@AmitJoki haha you are late :P
Thank you guys. It saved time a lot for me. I mean it.

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.