Click here to Skip to main content
15,511,131 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
QuestionHow do I make this CASE INSENSATIVE? Pin
RapidDonO23-Dec-21 2:13
RapidDonO23-Dec-21 2:13 
AnswerRe: How do I make this CASE INSENSATIVE? Pin
jschell23-Dec-21 7:09
jschell23-Dec-21 7:09 
QuestionHow to eliminate Pattern if Contains specific words Pin
RapidDonO20-Dec-21 6:30
RapidDonO20-Dec-21 6:30 
AnswerRe: How to eliminate Pattern if Contains specific words Pin
Richard Deeming4-Jan-22 0:32
mveRichard Deeming4-Jan-22 0:32 
QuestionRegular expression to extract row 3 Pin
DanVanClan17-Nov-21 3:53
DanVanClan17-Nov-21 3:53 
Questionfail2ban regex matching on testing sites but not fail2ban itself Pin
murdocklawless4-Nov-21 2:07
murdocklawless4-Nov-21 2:07 
I've a weird situation. I created a regex expression for one of the service. I've tested this expression at regexr.com and regex101.com and there are no problems at all. when I used this regex expression in fail2ban, it missed all the lines.

here is the log output;

[05-Oct-2021 17:09:39 +0300]: IMAP Error: Login failed for xyz@xyz.com against localhost from 95.65.143.88. AUTHENTICATE PLAIN: Authentication failed. in /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php on line 204 (POST /webmail/?_task=login&_action=login)


here is the regex;

(IMAP Error: Login failed for)\s([a-zA-Z0-9_.-]+\@[a-zA-Z0-9_.-]+)\s(against localhost from)\s


is fail2ban using a different regex structure?
AnswerRe: fail2ban regex matching on testing sites but not fail2ban itself Pin
Richard MacCutchan4-Nov-21 3:07
mveRichard MacCutchan4-Nov-21 3:07 
GeneralRe: fail2ban regex matching on testing sites but not fail2ban itself Pin
murdocklawless4-Nov-21 3:49
murdocklawless4-Nov-21 3:49 
AnswerRe: fail2ban regex matching on testing sites but not fail2ban itself Pin
Peter_in_27804-Nov-21 4:17
professionalPeter_in_27804-Nov-21 4:17 
GeneralRe: fail2ban regex matching on testing sites but not fail2ban itself Pin
murdocklawless4-Nov-21 4:31
murdocklawless4-Nov-21 4:31 
GeneralRe: fail2ban regex matching on testing sites but not fail2ban itself Pin
Peter_in_27804-Nov-21 13:05
professionalPeter_in_27804-Nov-21 13:05 
GeneralRe: fail2ban regex matching on testing sites but not fail2ban itself Pin
murdocklawless4-Nov-21 14:10
murdocklawless4-Nov-21 14:10 
QuestionEditing my existing Regex Pin
Member 154173673-Nov-21 2:14
Member 154173673-Nov-21 2:14 
Questionregex to replace accents Pin
Member 1489067816-Sep-21 4:50
Member 1489067816-Sep-21 4:50 
AnswerRe: regex to replace accents Pin
Richard Deeming16-Sep-21 5:28
mveRichard Deeming16-Sep-21 5:28 
GeneralRe: regex to replace accents Pin
Richard MacCutchan16-Sep-21 5:44
mveRichard MacCutchan16-Sep-21 5:44 
GeneralRe: regex to replace accents Pin
Richard Deeming16-Sep-21 5:55
mveRichard Deeming16-Sep-21 5:55 
GeneralRe: regex to replace accents Pin
Richard MacCutchan16-Sep-21 6:05
mveRichard MacCutchan16-Sep-21 6:05 
GeneralRe: regex to replace accents Pin
Member 1489067816-Sep-21 6:38
Member 1489067816-Sep-21 6:38 
GeneralRe: regex to replace accents Pin
Richard Deeming16-Sep-21 6:54
mveRichard Deeming16-Sep-21 6:54 
GeneralRe: regex to replace accents Pin
Member 1489067816-Sep-21 6:39
Member 1489067816-Sep-21 6:39 
AnswerRe: regex to replace accents Pin
Peter_in_278016-Sep-21 5:45
professionalPeter_in_278016-Sep-21 5:45 
QuestionRegex Match with Multiple Words, I need you to not use leading and trailing spaces. Pin
Member 1489067816-Sep-21 4:07
Member 1489067816-Sep-21 4:07 
QuestionTrying to match a string with many backslashes Pin
Florian Rammler31-Aug-21 2:35
Florian Rammler31-Aug-21 2:35 
AnswerRe: Trying to match a string with many backslashes Pin
Richard Deeming31-Aug-21 3:55
mveRichard Deeming31-Aug-21 3:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.