Regex : FileFrontEnd to StorBackEnd
This commit is contained in:
parent
2aa2bb97cb
commit
a72317a9fc
@ -1,21 +1,29 @@
|
|||||||
//Standardized definitions
|
//Standardized definitions
|
||||||
digit = [0-9];
|
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};
|
size = [0-9]{1,10}
|
||||||
line = \r\n;
|
line = \r\n
|
||||||
visiblechar = \p{Print};
|
visiblechar = \p{Print}
|
||||||
passchar = [^\s!];
|
passchar = [^\s!]
|
||||||
binary = .;
|
binary = .
|
||||||
password = [^\s!]{5,50};
|
password = [^\s!]{5,50}
|
||||||
bl = \s;
|
bl = \s
|
||||||
letter = [A-Za-z];
|
letter = [A-Za-z]
|
||||||
digit_letter = [A-Za-z0-9];
|
digit_letter = [A-Za-z0-9]
|
||||||
filename = [^\s!]{1,20};
|
filename = [^\s!]{1,20}
|
||||||
domain = [A-Za-z0-9.]{5,20};
|
domain = [A-Za-z0-9.]{5,20}
|
||||||
hash_filename = [A-Za-z0-9.]{50,200};
|
hash_filename = [A-Za-z0-9.]{50,200}
|
||||||
hash_filecontent = [A-Za-z0-9.]{50,200};
|
hash_filecontent = [A-Za-z0-9.]{50,200}
|
||||||
file_info = [A-Za-z0-9.]{50,200}\s[0-9]{1,10}\s[A-Za-z0-9.]{50,200};
|
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};
|
login = [A-Za-z0-9]{2,20}
|
||||||
|
|
||||||
//StorBackEnd to FileFrontEnd
|
//StorBackEnd to FileFrontEnd
|
||||||
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
|
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$ //TODO \r\n -> à tester pour voir si déjà dans le flux ou doit être construit
|
||||||
|
|
||||||
|
//FileFrontEnd to StorBackEnd
|
||||||
|
ffe_sendfile = ^(SENDFILE)\s([A-Za-z0-9.]{50,200}\s[0-9]{1,10}\s[A-Za-z0-9.]{50,200})\r\n(.*)$
|
||||||
|
sbe_sendresult = ^(SEND_OK|SEND_ERROR)\r\n$
|
||||||
|
ffe_erasefile = ^(ERASEFILE)\s([A-Za-z0-9.]{50,200})\r\n$
|
||||||
|
sbe_eraseresult = ^(ERASE_OK|ERASE_ERROR)\r\n$
|
||||||
|
ffe_retrievefile = ^(RETRIEVEFILE)\s([A-Za-z0-9.]{50,200})\r\n$
|
||||||
|
sbe_retrieveresult = ^(RETRIEVE_OK)\s([A-Za-z0-9.]{50,200}\s[0-9]{1,10}\s[A-Za-z0-9.]{50,200})\r\n(.*)|(RETRIEVE_ERROR)$
|
Loading…
Reference in New Issue
Block a user