Regular Expressions 101

Importing Confluence Application Logs to Amazon Athena

Open Workspace
  • PCRE (Legacy)
  • Match
0

Regular Expression

`
^(.*?) +(.*?) +(.*?) +\[(.*?)\] +\[(.*?)\] +(.+)$
`
gm

Description

Though in Athena you would need two backslash instead of one as listed above in Regex. expression in Athena. "input.regex" = '^(.?) (.?) (.?) \[(.?)\] \[(.*?)\] (.+)$'

Submitted by Chirag Parikh