Friday, September 7, 2012

[TOOL/EDITPLUS] EDITPLUS REGULAR EXPRESSION REPLACE EXAMPLES


first you check the 'Regular expression' option



remove whitepsace of end-of-lines
Find what: ( *)$
Replace with: none

remove whitespace at start each lines
like this codes:
<script src..............
  if(value){
    document.write()
after replace
<script src..............
if(value){
document.write()
Find what: ^([0-9]+ +)
Replace with: none

remove lines has only whitespace or null
Find what: ( *)\n\n
Replace with: none

searching html tag name
Find what: (\<\/?[A-Z]+)

No comments:

Post a Comment