Why [A-Z] = [a-z]?
-
I’m trying to replace uppercase characters with “?u”
Lowercase with “?l”, And Numbers with “?d”…
But there is a problem, When I try to replace [A-Z] characters it detect everything as uppercase and replace all of the charecters as"?u", and when I search [a-z] it also detect every character as lowercase and replace them as “?l”example:
N4eHbZ+HsytYV+dzi3y7UAv3YRqAd5oPJzXnL6QK2d3EvkVu2N1R+BeniJmkY0Z0GGySmDeoVSTxZ7xfJEG5OMDSYEXsOKTOsKToutput for “([A-Z]) & and replace with “?u””
?u4?u?u?u?u+?u?u?u?u?u?u+?u?u?u3?u7?u?u?u3?u?u?u?u?u5?u?u?u?u?u?u?u6?u?u2?u3?u?u?u?u?u2?u1?u+?u?u?u?u?u?u?u?u0?u0?u?u?u?u?u?u?u?u?u?u?u?u?u7?u?u?u?u?u5?u?u?u?u?u?u?u?u?u?u?u?u?u?u?uaslo the same output for lowecase ([a-z]):
?l4?l?l?l?l+?l?l?l?l?l?l+?l?l?l3?l7?l?l?l3?l?l?l?l?l5?l?l?l?l?l?l?l6?l?l2?l3?l?l?l?l?l2?l1?l+?l?l?l?l?l?l?l?l0?l0?l?l?l?l?l?l?l?l?l?l?l?l?l7?l?l?l?l?l5?l?l?l?l?l?l?l?l?l?l?l?l?l?l?lSo I want to replace uppercase with “?u”, lowercase with “?l” and numbers with “?d” in the previous example.
the expected output should looks like this:
“?u?d?l?u?l?u+?u?l?l?l?u?u+?l?l …etc” -
@Bahaa-Eddin-ツ
When I try to replace [A-Z] characters it detect everything as uppercase
First problem:
Match-case checkbox?replace with “?u””
Second problem:
?uis not a valid replace expression.
Have you RTFM? -
@Alan-Kilborn
yes you are right thanks it work now… I will feel stupid for about 2 months after this 💀 -
@Alan-Kilborn
No, I’m just copying token string of my site, just testing the security level…
Some sites has 1 type of strings that accepted in their system… So if a hacker know how string looks like, He can generate more strings and brute force the website… So this is a danger, I’m fixing it… That’s it -
@Bahaa-Eddin-ツ
Oh, I see. You just want to replace with a literal
?u. Most questions of this ilk have the poster wanting to convert the case of the matched text. -
@Bahaa-Eddin-ツ ,
Nah. You’ll hardly even remember it once it sinks to the bottom of the new posting queue. :)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login