Displaying page
of
pages;
Items to
Title |
Test
Details
Match All text inside tags <> including multiple lines
|
Expression |
(?<=<)[^<>]+(?=>)
|
Description |
Matches All text inside tags <> including multiple lines. Does not include beginning and ending tags. Does not support inner tag structure.
Can be modified to get tags by changing to:
<[^<>]+>
I use this mostly for stripping html from web results. Can easily be modified to be more complex.
|
Matches |
a href="HelloRegex" | a href="Hello \nRegex"
|
Non-Matches |
<a href="Hello Regex"> | a href="Hello<>Regex"
|
Author |
Rating:
Not yet rated.
John
|
Title |
Test
Details
Matches Line and All Subsequent Lines that begin with tab
|
Expression |
\w.+(\n\t.+){0,}
|
Description |
This can be easily modified for whatever log parsing purpose you have that matches this structure.
For Example I use this on postgres logs so I can easily group each message together. When postgres logs queries if there is a lf/cr then it copies it verbatim. I suppose you could try to change this in the postgres config for logging not sure if it would be possible or a good idea but you can use this regex to help.
|
Matches |
line\n\tnext line start with tab
|
Non-Matches |
line\n\line\n
|
Author |
Rating:
Not yet rated.
John
|
Title |
Test
Details
Find Blank Lines
|
Expression |
(?<!.)\n
|
Description |
Useful for striping blank lines or ignoring them while parsing.
can be modified to match specific number of blank lines in a row:
(?<!.)\n{5}
Will Match the Majority of line endings but can't say I have tested them all.
Mac:
(?<!.)\r
Win:
(?<!.)\n
Linux:
(?<!.)\n
|
Matches |
\n
|
Non-Matches |
my sentence\n
|
Author |
Rating:
Not yet rated.
John
|
Displaying page
of
pages;
Items to