Jason
Jason

Reputation: 4130

IntelliJ IDEA Structural Replace

Hopefully this is an easy one. I'm trying to convert bad coding standards to javadoc format.

I want to convert this line:

* Created by John.Smith on Jun 13, 2006 at 1:24:54 PM

To:

* @author John Smith

Any help?

Upvotes: 1

Views: 477

Answers (1)

retronym
retronym

Reputation: 55028

I would suggest a plain regular expression find/replace:

Find: Created by (.*?) on .*$

Replace: @author $1

Upvotes: 7

Related Questions