Regular Expression Cheatsheet

Character classes . – Matches any character except newline\d – Digit (0-9)\D – Not a digit (0-9) – opposite of \d\w, [A-Za-z0-9_], [:word:] – Word character (a-z, A-Z, 0-9 and _)\W, [^A-Za-z0-9], [^:word:] – Not a word character\s – Whitespace (space, tab, newline)\S – Not whitespace (space, tab, newline) – opposite of \s[] – Matches…

List of Prestashop Smarty Variables

{$subcategory.id_image|@print_r} ==> Print an array {$page|@print_r} ==> Print page array {if $subcategory.id_image neq it-default1} {else} {/if} ==> Check if subcategory has image {$urls.base_url} ==> Prestashop site baseUrl {$urls.base_url} ==> Store address {$urls.current_url} ==> Current address (url) where we are {$urls.shop_domain_url} ==> Store domain {$urls.img_ps_url} ==> Image root directory url {$urls.img_cat_url} ==> Url directory of images…

Hello, universe!

Hello folks, welcome to CodeGix! I will share and post any IT- and programming-related ideas on this website. Stay tuned folks. This site might be ugly at first but as the Malay proverb says: “sikit-sikit lama-lama jadi bukit!” translated as “It will become more progressive bit by bit”