Skip to content

Instantly share code, notes, and snippets.

@kzap
Created September 29, 2015 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kzap/34cc7659877f4692e14a to your computer and use it in GitHub Desktop.
Save kzap/34cc7659877f4692e14a to your computer and use it in GitHub Desktop.
AMA Parsing
1.) FIND: ' {AMANAME}: '
REPLACE WITH: ' {AMANAME}! '
2.) FIND: '\[[0-9]{1,2}:[0-9]{2} PM\] ([^:]+)\: ([^\[]+)'
REPLACE WITH: '**Q (\1) : \2**
'
3.) FIND: '
**
['
REPLACE WITH: '**
['
4.) FIND: '\[[0-9]{1,2}:[0-9]{2} PM\] {AMANAME}! '
REPLACE WITH: ''
5.) FIND: '(.)
(.)'
REPLACE WITH: '\1
\2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment