remove part of text in many files

General discussions about Advanced Find and Replace
Post Reply
barka
Posts: 2
Joined: Mon May 02, 2016 2:24 am

remove part of text in many files

Post by barka » Mon May 02, 2016 2:50 am

i have alot of .php files that contained text like below:

simkop_userlevelsadd.php
simkop_userlevelsdelete.php
simkop_userlevelsedit.php
simkop_userlevelsinfo.php
simkop_userlevelslist.php
simkop_userlevelsview.php
simkop_userlist.php
simkop_userupdate.php

can you please to tell me, how to make reguler expression to remove/delete "simkop_" only, so the result is like below:

userlevelsadd.php
userlevelsdelete.php
userlevelsedit.php
userlevelsinfo.php
userlevelslist.php
userlevelsview.php
userlist.php
userupdate.php

barka
Posts: 2
Joined: Mon May 02, 2016 2:24 am

Re: remove part of text in many files

Post by barka » Mon May 02, 2016 3:06 am

apologize, i want to explain what i mean more detail:

i have alot of .php files that contained text like below:

simkop_userlevelsadd.php
simkop_userlevelsdelete.php
simkop_userlevelsedit.php
simkop_userlevelsinfo.php
simkop_userlevelslist.php
simkop_userlevelsview.php
simkop_userlist.php
simkop_userupdate.php

simkop_userlevelsadd
simkop_userlevelsdelete
simkop_userlevelsedit
simkop_userlevelsinfo
simkop_userlevelslist
simkop_userlevelsview
simkop_userlist
simkop_userupdate

can you please to tell me, how to make reguler expression to remove/delete "simkop_" only in text that contained .php, so the result is like below:

userlevelsadd.php
userlevelsdelete.php
userlevelsedit.php
userlevelsinfo.php
userlevelslist.php
userlevelsview.php
userlist.php
userupdate.php

(no change)
simkop_userlevelsadd
simkop_userlevelsdelete
simkop_userlevelsedit
simkop_userlevelsinfo
simkop_userlevelslist
simkop_userlevelsview
simkop_userlist
simkop_userupdate

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests