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 - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -