Click here to Skip to main content
15,501,276 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
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
Membermurdocklawless4-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
Membermurdocklawless4-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
Membermurdocklawless4-Nov-21 14:10 
QuestionEditing my existing Regex Pin
Member 154173673-Nov-21 2:14
MemberMember 154173673-Nov-21 2:14 
Questionregex to replace accents Pin
Member 1489067816-Sep-21 4:50
MemberMember 1489067816-Sep-21 4:50 
I have this regex to replace accents but it fails if the text contains "|".
string Text = "word|word2";

C#
// Regex.
System.Text.RegularExpressions.Regex replace_a_Accents = new System.Text.RegularExpressions.Regex("[á|à|ä|â]", System.Text.RegularExpressions.RegexOptions.Compiled);
System.Text.RegularExpressions.Regex replace_e_Accents = new System.Text.RegularExpressions.Regex("[é|è|ë|ê]", System.Text.RegularExpressions.RegexOptions.Compiled);
System.Text.RegularExpressions.Regex replace_i_Accents = new System.Text.RegularExpressions.Regex("[í|ì|ï|î]", System.Text.RegularExpressions.RegexOptions.Compiled);
System.Text.RegularExpressions.Regex replace_o_Accents = new System.Text.RegularExpressions.Regex("[ó|ò|ö|ô]", System.Text.RegularExpressions.RegexOptions.Compiled);
System.Text.RegularExpressions.Regex replace_u_Accents = new System.Text.RegularExpressions.Regex("[ú|ù|ü|û]", System.Text.RegularExpressions.RegexOptions.Compiled);

// Reemplaza.
Texto_Retorno = replace_a_Accents.Replace(Texto_Retorno, "a");
Texto_Retorno = replace_e_Accents.Replace(Texto_Retorno, "e");
Texto_Retorno = replace_i_Accents.Replace(Texto_Retorno, "i");
Texto_Retorno = replace_o_Accents.Replace(Texto_Retorno, "o");
Texto_Retorno = replace_u_Accents.Replace(Texto_Retorno, "u");

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
MemberMember 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
MemberMember 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
MemberMember 1489067816-Sep-21 4:07 
QuestionTrying to match a string with many backslashes Pin
Florian Rammler31-Aug-21 2:35
MemberFlorian 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 
QuestionRegex to match exact word and dash symbol Pin
Member 1533502224-Aug-21 10:28
MemberMember 1533502224-Aug-21 10:28 
AnswerRe: Regex to match exact word and dash symbol Pin
OriginalGriff24-Aug-21 10:32
mveOriginalGriff24-Aug-21 10:32 
GeneralRe: Regex to match exact word and dash symbol Pin
Member 1533502224-Aug-21 11:00
MemberMember 1533502224-Aug-21 11:00 
AnswerRe: Regex to match exact word and dash symbol Pin
User 1521787324-Aug-21 18:47
MemberUser 1521787324-Aug-21 18:47 
GeneralRe: Regex to match exact word and dash symbol Pin
Member 1533502224-Aug-21 23:57
MemberMember 1533502224-Aug-21 23:57 
GeneralRe: Regex to match exact word and dash symbol Pin
User 1521787325-Aug-21 0:32
MemberUser 1521787325-Aug-21 0:32 

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.