jEdit: Fun w/ search and replace

Oct 29, 2009 16:53

I just did a “search” for this regexp:
Num:(\d+),

And had it “replace” with the “return value of a beanshell snippet”:
"Num:" + _1 + ", // 0x" + Integer.toHexString(Integer.parseInt(_1))

So, it changed:
Num:80,
to:
Num:80, // 0x50

Cool!

jEdit

jedit, programming

Previous post Next post
Up