Skip to content

Confusing Regex-Pattern #7

@FiSHonAUT

Description

@FiSHonAUT

There is this line in the Obfuscation Module:
sPattern = "([\s])" & sFinde & "(\_{1}[A-Za-zÀ-ßà-ÿ¨¸]{4,40}(?:\:\s|\n|\r))"

Why exactly is there (?:\:\s|\n|\r)? It breaks the obfuscation when I manually call a control event

e.g.

Private Sub MyCombobox_Change() <== This gets obfuscated correctly
    Do Something
End Sub

Private Sub SomeOtherSub()
    MyCombobox_Change <== This one stays and is not obfuscated, therefore break the code
End Sub

I removed (?:\:\s|\n|\r) and it worked for me. But I wonder if it has an important purpose?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions