# How to replace a string within a selected region in a notebook?

I want to replace a string in a selected region/cell in mathematica notebook/package. I searched but didn' t get any result. I think it' s a quite common feature for editors/programming environments. I guess workbench has this but I don' t have access to a copy.

Maybe now the best option is to use some other editor to do this, is it?

-
Why don't you use Find and Replace in the menu Edit, a shorthand (Ctrl+F) ? It helps you to replace whatever you'd like. –  Artes May 27 '13 at 12:34
It replaces in the whole notebook by default and doesn' t have an option to replace in the selected region/cell. –  xgdgsc May 27 '13 at 12:35
Check again, you can customize replacements, FindNext, FindPrevious, Replace, ReplaceAll, etc. Or maybe you need StringReplace ??? –  Artes May 27 '13 at 12:38
Yes, but it's different from replacing in a selected region. Say in the region you have 100 words to confirm replacing and another 100 same world outside this region in the same notebook. It's not practical to use FindNext and Replace only. –  xgdgsc May 27 '13 at 12:40
I do the same as @Artes suggested, and yet usually I come across the same problem as you @xgdgsc. What I do is copying the cells that I want to edit to another notebook and then use Find and Replace for the whole [new] notebook. –  Sosi May 27 '13 at 13:35