{"id":1424,"date":"2021-06-28T00:58:19","date_gmt":"2021-06-27T19:28:19","guid":{"rendered":"https:\/\/selfimagination.in\/tips\/?p=1424"},"modified":"2022-06-22T18:27:38","modified_gmt":"2022-06-22T12:57:38","slug":"quick-code-replacer-tool","status":"publish","type":"post","link":"https:\/\/selfimagination.in\/tips\/quick-code-replacer-tool\/","title":{"rendered":"Quick Code Replacer Tool"},"content":{"rendered":"\n<title>Quick Code Replacer Tool<\/title>\n\n<style>\n.fullwidth\n{\n\twidth :100%;\n}\n\n.maxheight\n{\n\theight :150px;\n}\n\n\n\n.form-group\n{\n\tmargin:12px 8px 8px 8px;\n}\n\nbody\n{\n\tfont-size:14px;\n}\n\ntextarea\n{\n\tfont-size:16px;\n}\n\ntextarea_fix\n{\n\tresize: none; !important \n}\n\n<\/style>\n<script>\n\nfunction GetConvert()\n{\n\tvar ls_str  = jQuery('#input_str').val();\n\tvar ls_find = jQuery('#input_find').val();\n\tvar ls_repl = jQuery('#input_replace').val();\n\tvar ls_res  = jQuery('#input_result');\n\t\n\t\n\tls_repl = ls_repl + \",\";\n\t\n\tvar ar_repl = ls_repl.split(',');\n\tvar ls_msg = '';\n\t\n\tvar ls_maxlen=0;\n\tfor (var i = 0; i< ar_repl.length; i++)\n\t{\n\t\tvar ls_v = ar_repl[i].trim();\n\t\tls_maxlen = Math.max(ls_v.length, ls_maxlen);\n\t}\t\n\t\n\tfor (var i = 0; i< ar_repl.length; i++)\n\t{\n\t\t\n\t\tvar ls_v = ar_repl[i].trim();\n\t\tif (ls_v != \"\")\n\t\t{\n\t\t\tvar ls_l = ls_v.length;\n\t\t\tvar r = ls_str.replace(ls_find, ls_v).replace(ls_find, ls_v).replace(ls_find, ls_v).replace(ls_find, ls_v).replace(ls_find, ls_v).replace(ls_find, ls_v).replace(ls_find, ls_v).replace(ls_find, ls_v).replace(ls_find, ls_v).replace(ls_find, ls_v).replace(ls_find, ls_v).replace(ls_find, ls_v).replace(ls_find, ls_v).replace(ls_find, ls_v).replace(ls_find, ls_v);\n\t\t\tvar ls_sp = GetSpace(ls_maxlen - ls_l);\n\t\t\t\n\t\t\tr = r.replace(\" =\", ls_sp + \"=\");\n\t\t\t\n\t\t\tvar ls_msg = ls_msg + r + \"\\r\\n\";\n\t\t}\n\t}\n\t\n\tls_res.val(ls_msg);\n\t\n\t\n}\n\nfunction GetSpace(ii)\n{\n\t\/\/alert(ii);\n\tvar ls_ret = \"\";\n\tfor (var i=1; i<=ii; i++)\n\t{\n\t\t ls_ret = ls_ret + \" \";\n\t}\n\t\n\treturn ls_ret;\n}\n\nfunction CmdCopy(ls_nm)\n{\n\tdocument.getElementById(ls_nm).select();\n\tdocument.getElementById(ls_nm).setSelectionRange(0, 99999);\n\tdocument.execCommand('copy');\n}\nfunction CmdPaste(ls_nm)\n{\n\tdocument.getElementById(ls_nm).select();\n\tdocument.getElementById(ls_nm).setSelectionRange(0, 99999);\n\tdocument.execCommand('paste');\n}\n\n \n\n<\/script>\n\n\n\n\n\n\n<div class=\"form-group mb-1 row\">\n\t<label for=\"input_str\" class=\"col-sm-2 label\">1. Paste your Standard Code<\/label>\n\t\n\t<div class=\"col-sm-12\">\n\t<textarea class=\"form-control fullwidth textarea_fix\" id=\"input_str\" placeholder=\"$ls_id = $_GET[&quot;id&quot;];\" onkeyup=\"GetConvert()\"><\/textarea><\/div>\n<\/div>\n\n<div class=\"form-group mb-1 row\">\n\t<label for=\"input_find\" class=\"col-sm-2 label\">2. Type Keyword, which to be replaced <\/label>\n\t<div class=\"col-sm-12\"><textarea class=\"form-control fullwidth textarea_fix\" rows=\"1\" id=\"input_find\" placeholder=\"id\" onkeyup=\"GetConvert()\"><\/textarea><\/div>\n<\/div>\n<div class=\"form-group mb-1 row\">\n\t<label for=\"input_replace\" class=\"col-sm-2 label\">3. Paste Comma Separate List for Replace<\/label>\n\t<div class=\"col-sm-12\"><textarea class=\"form-control fullwidth textarea_fix\" rows=\"1\" id=\"input_replace\" placeholder=\"name, email, phno\" onkeyup=\"GetConvert()\"><\/textarea><\/div>\n<\/div>\n<div class=\"form-group mb-1 row\" style=\"display:none;\"> \n<div class=\"col-sm-12\"><button type=\"button\" class=\"btn btn-info\" id=\"input_btn\" onclick=\" GetConvert()\">4. Press this button for Replace <\/button><\/div>\n<\/div>\n<div class=\"form-group mb-1 row\">\n\t<label for=\"input_result\" class=\"col-sm-2 label\">4. Final Result<\/label>\n\t<button style=\"float:right\" type=\"button\" class=\"btn btn-info\" onclick=\"CmdCopy('input_result')\">Copy<\/button>\n\t<div class=\"col-sm-12\"><textarea class=\"form-control fullwidth maxheight\" id=\"input_result\" placeholder=\"$ls_id     = $_GET[&quot;id&quot;];\n$ls_name   = $_GET[&quot;name&quot;];\n$ls_email  = $_GET[&quot;email&quot;];\n$ls_phno   = $_GET[&quot;phno&quot;];\"><\/textarea><\/div>\n<\/div>\n\n\n\n<p>\u092f\u0939 \u091f\u0942\u0932 \u092a\u094d\u0930\u094b\u0917\u094d\u0930\u093e\u092e\u0930 \u0915\u094b \u092c\u0939\u0941\u0924 \u0939\u0940 \u0939\u0947\u0932\u094d\u092a \u0915\u0930\u0924\u093e \u0939\u0948\u0902 \u091c\u092c \u092d\u0940 \u0939\u092e\u0947\u0902 \u0915\u094b\u0908 \u090f\u0915 \u091c\u0948\u0938\u0947 \u092a\u0948\u091f\u0930\u094d\u0928 \u092a\u0930 \u0915\u0949\u092a\u0940 \u092a\u0947\u0938\u094d\u091f \u0915\u0930\u0928\u093e \u0939\u094b \u0924\u094b \u0939\u092e \u091f\u0942\u0932 \u0915\u0940 \u0939\u0947\u0932\u094d\u092a \u0932\u0947 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964 \u091c\u0948\u0938\u0947 \u0939\u092e\u0947\u0902 $ls_id = $_GET[\"id\"]; \u0907\u0938 \u092a\u0948\u091f\u0930\u094d\u0928 \u092a\u0930 name, email, address \u0915\u0940 \u092d\u0940 \u0932\u093e\u0907\u0928 \u092c\u0928\u093e\u0928\u093e \u0939\u0948\u0902\u0964 \u0924\u094b \u0939\u092e \u0907\u0938 Example \u0938\u0947 \u0938\u092e\u091d\u0924\u0947 \u0939\u0948\u0902 \u0915\u0940 \u0939\u092e \u0907\u0938 \u091f\u0942\u0932 \u0938\u0947 \u0915\u0948\u0938\u0947 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964 <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. Paste your Standard Code<\/strong><\/h3>\n\n\n\n<p>\u092f\u0939\u093e\u0901 \u092a\u0930 \u0906\u092a\u0915\u094b Code \u0915\u0940 \u0935\u0939 \u0932\u093e\u0907\u0928 Paste \u0915\u0930\u0928\u093e \u0939\u0948\u0902 \u091c\u093f\u0938\u0915\u0947 \u091c\u0948\u0938\u0940 \u0932\u093e\u0907\u0928 \u0915\u0949\u092a\u0940 \u0915\u0930 \u0906\u092a \u0909\u0938\u092e\u0947 \u0915\u0941\u091b \u091a\u0947\u0902\u091c \u0915\u0930\u0928\u093e \u091a\u093e\u0939\u0924\u0947 \u0939\u0948\u0902\u0964  \u0909\u0926\u093e\u0939\u0930\u0923 \u0915\u0947 \u0932\u093f\u090f \u0939\u092e \u092f\u0939\u093e\u0901 \u092a\u0930 $ls_id = $_GET[\"id\"]; \u0932\u093f\u0916\u0947\u0902\u0917\u0947\u0964 <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Type Keyword, which to be replaced<\/strong><\/h3>\n\n\n\n<p>\u091c\u094b \u0932\u093e\u0907\u0928 \u0906\u092a\u0928\u0947 1 \u092e\u0947\u0902 \u092a\u0947\u0938\u094d\u091f \u0915\u0940 \u0939\u0948\u0902 \u0909\u0938\u092e\u0947 \u0938\u0947 \u0915\u093f\u0938 \u0915\u0940\u0935\u0930\u094d\u0921 \u0915\u094b \u0906\u092a \u092c\u0926\u0932\u0928\u093e \u091a\u093e\u0939\u0924\u0947 \u0939\u0948\u0902 \u0935\u0939 \u092f\u0939\u093e\u0901 \u092a\u0930 \u0932\u093f\u0916\u0947\u0964 \u0909\u0926\u093e\u0939\u0930\u0923 \u0915\u0947 \u0932\u093f\u090f \u0939\u092e\u0947\u0902 id \u0915\u0947 \u0938\u094d\u0925\u093e\u0928 \u092a\u0930 \u0914\u0930 \u0915\u0941\u091b replace \u0915\u0930\u0928\u093e \u0939\u0948\u0902 \u0907\u0938\u0932\u093f\u090f \u0939\u092e \u092f\u0939\u093e\u0901 \u092a\u0930 id \u0932\u093f\u0916\u0947\u0902\u0917\u0947\u0964 <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. Paste Comma Separate List for Replace<\/strong><\/h3>\n\n\n\n<p>\u092f\u0939\u093e\u0901 \u092a\u0930 \u0906\u092a\u0915\u094b \u0935\u0939 \u0938\u092d\u0940 \u0915\u0940\u0935\u0930\u094d\u0921  \u0932\u093f\u0916\u0928\u093e \u0939\u0948\u0902 \u091c\u093f\u0928\u0938\u0947 \u0928\u092f\u0940 \u0932\u093e\u0907\u0928 \u092c\u0928\u0947\u0917\u0940\u0964 \u0909\u0926\u093e\u0939\u0930\u0923 \u0915\u0947 \u0932\u093f\u090f \u0939\u092e \u092f\u0939\u093e\u0901 \u092a\u0930 name, email, address \u0932\u093f\u0916\u0947\u0902\u0917\u0947 \u0924\u093e\u0915\u093f \u091f\u0942\u0932 \u0932\u093e\u0907\u0928 \u092c\u0928\u093e \u0915\u0930 \u0909\u0938\u092e\u0947 replace \u0915\u0930 \u0926\u0947\u0964 <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. Final Result<\/strong><\/h3>\n\n\n\n<p>\u092f\u0939\u093e\u0901 \u092a\u0930 \u092b\u093e\u0907\u0928\u0932 \u0930\u093f\u091c\u0932\u094d\u091f \u0906 \u091c\u093e\u090f\u0917\u093e \u0915\u0928\u094d\u0935\u0930\u094d\u091f \u0939\u094b \u0915\u0930\u0964 \u092f\u0939\u093e\u0901 \u092a\u0930 \u0905\u092c \u091a\u093e\u0930 \u0932\u093e\u0907\u0928 \u0906 \u0917\u0908 \u0939\u0948\u0902 \u0914\u0930 \u0905\u092a\u0928\u0947 \u091c\u094b 3rd Row \u092a\u0930 List \u0926\u0940 \u0939\u0948\u0902 \u0909\u0938\u0915\u0947 \u0905\u0928\u0941\u0938\u093e\u0930 \u0932\u093e\u0907\u0928 \u092c\u0928 \u091a\u0941\u0915\u0940 \u0939\u0948\u0902\u0964 <\/p>\n\n\n\n<p><a href=\"https:\/\/youtu.be\/7G1ZiWIVJjI\" target=\"_blank\" rel=\"noopener\">\u0935\u093f\u0921\u093f\u0913 \u0915\u0947 \u092e\u093e\u0927\u094d\u092f\u092e \u0938\u0947 \u0938\u092e\u091d\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u092f\u0902\u0939\u093e \u092a\u0930 \u0915\u094d\u0932\u093f\u0915 \u0915\u0930\u0947 <\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u092f\u0939 Tool \u0906\u092a\u0915\u094b \u0915\u0948\u0938\u093e \u0932\u0917\u093e \u091c\u0930\u0942\u0930 \u092c\u0924\u093e\u092f\u0947\u0964 <\/p>\n\n\n\n<p>\u0927\u0928\u094d\u092f\u0935\u093e\u0926\u094d <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u0939\u092e-\u0930-\u0905\u0928-\u092f-\u0906\u0930-\u091f-\u0915\u0932\"><strong>\u0939\u092e\u093e\u0930\u0947 \u0905\u0928\u094d\u092f \u0906\u0930\u094d\u091f\u093f\u0915\u0932<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/selfimagination.in\/tips\/mysql-function\/\">MySQL Function<\/a><\/li><li><a href=\"https:\/\/selfimagination.in\/tips\/mysql-stored-procedure\/\">MySQL Stored Procedure<\/a><\/li><li><a href=\"https:\/\/www.blogger.com\/blog\/post\/edit\/7447982977203437413\/6208519383164929361#\" target=\"_blank\" rel=\"noreferrer noopener\">PHP Get \/Post Method \u0915\u0947 \u092c\u093e\u0930\u0947 \u092e\u0947\u0902 \u091c\u093e\u0928\u0947<\/a><\/li><li><a href=\"https:\/\/www.blogger.com\/blog\/post\/edit\/7447982977203437413\/6208519383164929361#\" target=\"_blank\" rel=\"noreferrer noopener\">PHP Math Function \u0915\u0947 \u092c\u093e\u0930\u0947 \u092e\u0947\u0902 \u091c\u093e\u0928\u0947<\/a><\/li><li><a href=\"https:\/\/www.blogger.com\/blog\/post\/edit\/7447982977203437413\/6208519383164929361#\" target=\"_blank\" rel=\"noreferrer noopener\">C \u0938\u0947 C ++ \u0938\u0940\u0916\u0947 \u0938\u0930\u0932 \u0936\u092c\u094d\u0926\u094b\u0902 \u092e\u0947\u0902<\/a><\/li><li><a href=\"https:\/\/www.blogger.com\/blog\/post\/edit\/7447982977203437413\/6208519383164929361#\" target=\"_blank\" rel=\"noreferrer noopener\">PHP Variable \u0915\u0947 \u092c\u093e\u0930\u0947 \u092e\u0947\u0902 \u091c\u093e\u0928\u0947<\/a><\/li><li><a href=\"https:\/\/www.blogger.com\/blog\/post\/edit\/7447982977203437413\/6208519383164929361#\" target=\"_blank\" rel=\"noreferrer noopener\">Arduino Control Structure<\/a>&nbsp;<\/li><li><a href=\"https:\/\/www.blogger.com\/blog\/post\/edit\/7447982977203437413\/6208519383164929361#\" target=\"_blank\" rel=\"noreferrer noopener\">Union in C<\/a><\/li><li><a href=\"https:\/\/www.blogger.com\/blog\/post\/edit\/7447982977203437413\/1585571442105143831#\" target=\"_blank\" rel=\"noreferrer noopener\">Declaration of Pointer in C<\/a><\/li><li><a href=\"https:\/\/www.blogger.com\/blog\/post\/edit\/7447982977203437413\/1585571442105143831#\" target=\"_blank\" rel=\"noreferrer noopener\">Search jQuery<\/a><\/li><li><a href=\"https:\/\/www.blogger.com\/blog\/post\/edit\/7447982977203437413\/1585571442105143831#\" target=\"_blank\" rel=\"noreferrer noopener\">MySQL Create Table | Alter Table | Drop Table<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Quick Code Replacer Tool 1. Paste your Standard Code 2. Type Keyword, which to be replaced 3. Paste Comma Separate List for Replace 4. Press this button for Replace 4. Final Result Copy \u092f\u0939 \u091f\u0942\u0932 \u092a\u094d\u0930\u094b\u0917\u094d\u0930\u093e\u092e\u0930 \u0915\u094b \u092c\u0939\u0941\u0924 \u0939\u0940 \u0939\u0947\u0932\u094d\u092a \u0915\u0930\u0924\u093e \u0939\u0948\u0902 \u091c\u092c \u092d\u0940 \u0939\u092e\u0947\u0902 \u0915\u094b\u0908 \u090f\u0915 \u091c\u0948\u0938\u0947 \u092a\u0948\u091f\u0930\u094d\u0928 \u092a\u0930 \u0915\u0949\u092a\u0940 \u092a\u0947\u0938\u094d\u091f \u0915\u0930\u0928\u093e \u0939\u094b \u0924\u094b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1447,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[],"class_list":["post-1424","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tools"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/selfimagination.in\/tips\/wp-content\/uploads\/2021\/06\/quick-code-replacer-tool.jpg?fit=1200%2C628&ssl=1","_links":{"self":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts\/1424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/comments?post=1424"}],"version-history":[{"count":30,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts\/1424\/revisions"}],"predecessor-version":[{"id":8497,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts\/1424\/revisions\/8497"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/media\/1447"}],"wp:attachment":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/media?parent=1424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/categories?post=1424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/tags?post=1424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}