diff --git a/plugins/builtin/source/content/views/view_hex_editor.cpp b/plugins/builtin/source/content/views/view_hex_editor.cpp index 4b270270b..5fca798c3 100644 --- a/plugins/builtin/source/content/views/view_hex_editor.cpp +++ b/plugins/builtin/source/content/views/view_hex_editor.cpp @@ -630,6 +630,11 @@ namespace hex::plugin::builtin { if (clipboard.empty()) return; + // Remove common hex prefixes and commas + hex::replaceStrings(clipboard, "0x", ""); + hex::replaceStrings(clipboard, "0X", ""); + hex::replaceStrings(clipboard, ",", ""); + // Check for non-hex characters bool isValidHexString = std::find_if(clipboard.begin(), clipboard.end(), [](char c) { return !std::isxdigit(c) && !std::isspace(c);