Here's a snippet of my text file:
Code:
| UnitEnteredLos() || || || || unitID, teamID
|-
| UnitLeftRadar() || || || || unitID, unitTeam
|-
| UnitLeftLos() || || || || unitID, unitDefID, teamID
How can I replace every function from the textfile so it becomes like this:
Code:
| [[/UnitEnteredLos()/]] || || || || unitID, teamID
|-
| [[/UnitLeftRadar()/]] || || || || unitID, unitTeam
|-
| [[/UnitLeftLos()/]] || || || || unitID, unitDefID, teamID
So I want each "functionName()" to become "[[/functionName()/]]".
I have been using Gedit and I read the basics of regular expressions some time ago but can't remember much. Any suggestion is welcome.
Bookmarks