notepad++ - Wild card search using Notepad -


in notepad++ how can search using wildcards for

get_gettimenow(); 

or

get_iscurrent(); 

then want replace with

gettimenow 

or

iscurrent  

in other words find

get_xxxx();  

replace with

xxxx; 

i'm trying large file

use find. pick replace tab.

set search option regex. (bottom left).

find what: get_(.*)\(\);

replace with: \1

note: work if these tokens on end of line. not unreasonable assumption if have ; @ end.

explanation: get_ matches first 4 characters. (.*) matches next characters. saves matched string. \(\); matches end of string. uses \ escape (. () saves matched string used above. because of match not include section.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -