From 2aa2bb97cbb2780f3b4be5232925c1428bd76181 Mon Sep 17 00:00:00 2001 From: Maximilien LEDOUX Date: Sun, 20 Feb 2022 10:59:11 +0100 Subject: [PATCH] Regex : StorBackEnd to FileFrontEnd --- app/src/main/resources/rules.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/resources/rules.txt b/app/src/main/resources/rules.txt index 6af8e16..6a67a77 100644 --- a/app/src/main/resources/rules.txt +++ b/app/src/main/resources/rules.txt @@ -1,6 +1,6 @@ //Standardized definitions digit = [0-9]; -port = ((6553[0-5])|(655[0-2][0-9])|(65[0-4][0-9]{2})|(6[0-4][0-9]{3})|([1-5][0-9]{4})|([0-5]{0,5})|([0-9]{1,4})); +port = (6553[0-5])|(655[0-2][0-9])|(65[0-4][0-9]{2})|(6[0-4][0-9]{3})|([1-5][0-9]{4})|([0-5]{0,5})|([0-9]{1,4}); size = [0-9]{1,10}; line = \r\n; visiblechar = \p{Print}; @@ -18,4 +18,4 @@ file_info = [A-Za-z0-9.]{50,200}\s[0-9]{1,10}\s[A-Za-z0-9.]{50,200}; login = [A-Za-z0-9]{2,20}; //StorBackEnd to FileFrontEnd -sbe_hello = \ No newline at end of file +sbe_hello = ^(HELLO)\s([A-Za-z0-9.]{5,20})\s((6553[0-5])|(655[0-2][0-9])|(65[0-4][0-9]{2})|(6[0-4][0-9]{3})|([0-5][0-9]{4})|([0-9]{1,4}))$; //\r\n -> à tester \ No newline at end of file