in reply to regex replace problem
the problem is that sometimes the words can have "(" such as tbgl_translate(...)Does that mean that "tbgl_translate(" needs to be turned into "translate(_gl"? If not, that is, if the '(' is totally irrelevant, what's the problem here? In that case,
ought to do it.s/tbgl_(\pL+)/${1}_gl/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex replace problem
by Anonymous Monk on Nov 18, 2010 at 14:45 UTC | |
by JavaFan (Canon) on Nov 18, 2010 at 15:32 UTC | |
by fisher (Priest) on Nov 18, 2010 at 15:43 UTC | |
by Anonymous Monk on Nov 18, 2010 at 16:17 UTC | |
by ikegami (Patriarch) on Nov 18, 2010 at 17:36 UTC | |
by fisher (Priest) on Nov 18, 2010 at 16:51 UTC |