Difference between revisions of "How to Format a Log Quickly"

From Tenebrae
Jump to navigation Jump to search
Line 14: Line 14:
 
{{TableMain}}
 
{{TableMain}}
 
{{T01}}
 
{{T01}}
| width="125"|To find...
+
| width="125"|To Find...
 
|Open Search, and Select...
 
|Open Search, and Select...
 
|Paste This into Find
 
|Paste This into Find

Revision as of 08:28, 10 March 2012

Logging can be done smoothly. Usually, it is a case of knowing a little advanced Find and Replace. I've probably included more screenshots than is needed. A special thanks goes to Eleria for his help in getting the RegEx in order!

What You Need

  • A client that supports logging. For example, SimpleMU or BeipMU.
  • A text editor that supports advanced searches. If you run Windows, install Notepad++. If you're using another OS, use its native text editor.


How You Do It

To clean a log in this fashion, you will be tinkering with a few of Find and Replace's more advanced features. Don't worry, though. Just copy and paste what you see in the table below. The table shows you what to search for when doing this in Notepad++. Linux and Mac text editors should be able to perform similar functions.

Note you can avoid having to find and replace things like pages or channel chatter by using your MU Client's filters.


To Find... Open Search, and Select... Paste This into Find Paste this into Replace
Pages
Log fr regex.png

^From afar\, (.*?)$

^[A-Za-z\-\'\`]+ pages\: (.*?)$

^Long distance to (.*?)\: (.*?)$

^You paged (.*?) with \'(.*?)\'$

^From afar\, to \((.*?)\)\: (.*?)$

^To \((.*?)\)\, (.*?) pages: (.*?)$

Put nothing into Replace (that is, leave it blank)
Channel Chatter
Log fr regex.png
^\[[A-Za-z]+\] (.*?)$ Put nothing into Replace (that is, leave it blank)
OOC Chatter
Log fr regex.png
^<OOC> (.*?)$ Put nothing into Replace (that is, leave it blank)
Remove spacing before poses
Log fr regex.png
^\s+ Put nothing into Replace (that is, leave it blank)
Remove excess returns
Log fr extended.png

1. Search for \n\n and replace with nothing

2. Search for \r\r and then replace with \r and click "Replace All" until you get "0 occurances replaced" in the popup

Remove any triple lines between paragraphs
Log fr extended.png
\r \r\r


If you're running Linux or Mac: Regarding adding additional lines between paragraphs, or removing triple lines: \n and \r stand for New line, and Return, respectively. Depending on your OS, you may need to search for slightly different combinations. Try and see! You're not going to hurt it.