Vue.js regex form validation
This is a Vue.js form validation with a little help from regular expressions. The important part here is to pay attention to
preventDefault method in combination with the errors array or success message array after the submit event has been triggered. Regular expressions are the only waterproof tool to sanitize the inputs although the browser and the HTML itself can be used for this purpose if you do not want to spend some time on analyzing and writing down the regex yourself.
PHP string cleaner
This example uses two regular expressions to strip the inserted string of all symbols, extra hyphens and extra white spaces so the end result is a clean text structure that contains lowercase words, and only one hyphen between each word. This has many use-case scenarios, for example, you can use it in a custom CMS for inserting clean SEO friendly blog titles, or url-s, based on the text that the author inserts in the input field.
PHP + Bootstrap 4 shopping cart
This is a Bootstrap 4 + PHP + jQuery responsive shopping cart example, using Php filter_input function, and few other concepts and basic control flow statements.
jQuery + Bootstrap 4 contact form validation
Interactive Bootstrap 4 + jQuery contact form with multiple client side validations. Very simple, but useful.