Regex bei automatischer Profilauswahl und Ablegen von Dokumenten ist nun caseinsensitive - frmAdministration, frmIndex

This commit is contained in:
OlgunR
2025-07-30 08:10:29 +02:00
parent cd3b2f1ae3
commit 8810592e6d
3 changed files with 5 additions and 5 deletions

View File

@@ -1059,7 +1059,7 @@ Public Class frmAdministration
Private Sub Button2_Click_1(sender As Object, e As EventArgs) Handles Button2.Click
Try
If Regex.IsMatch(TextBox1.Text, TextBox5.Text) Then
If Regex.IsMatch(TextBox1.Text, TextBox5.Text, RegexOptions.IgnoreCase) Then
MsgBox("The RegEx resulted in a proper match!", MsgBoxStyle.Information, "Perfect:")
Else
MsgBox("No Match- There might be an error in the RegEx!", MsgBoxStyle.Information, "Something wrong:")