Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 473 Bytes

regex.md

File metadata and controls

33 lines (21 loc) · 473 Bytes

some regex used in intellij

@scriptable
@scriptable\s*\*/\s*@Scriptable
@scriptable\s*\*/\s*public


import hec.lang.annotation.Scriptable;


--- code that allready has upgraded, remove @scriptable.
find:
@scriptable(\s*\*/\s*@Scriptable)
replace:
$1

-- find duplicate Scriptable
find:
@Scriptable\s*@Scriptable

--- insert scriptable
find:
@scriptable(\s*\*/\n)
replace:
$1\t@Scriptable\n

@Scriptable(\s*\*/\n)

some code needs two \n\n to tab properly..