C
C
Chvanikoff2011-11-13 03:21:41
Regular Expressions
Chvanikoff, 2011-11-13 03:21:41

What does such a regular expression validate?

I analyze the obfuscated code, in many places there is such a regular expression (in the context of larger ones), but I just can’t understand what it filters?
\\x1\d{6}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
szKarlen, 2011-11-13
@szKarlen

the example above uses the \xdd metacharacter used to find latin characters by specifying their hex value
\d - means parsing numbers (0-9)
{6} - means 6-digit number
1 - hex value starts at 1

A
avalak, 2011-11-13
@avalak

Actually, what do you not understand? What values ​​(for example, email, ip, etc) or what kind of strings ( "\x1012345" ) match this regular expression?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question