EDDYMENS

Published a year ago

Matching Markdown And HTML Headings Using Regex | PHP

There are about three different heading syntaxes in Markdown. Two of which allow a heading level of up to about 6. The PHP script below matches all the different types of headings in Markdown Also, the script ignores the maximum level of 6 and will match as long as the pattern follows the ...

Published a year ago

How To Create A Block Button In Bootstrap 5 (full Width Button)

Bootstrap 5 no longer uses the class to create full-width buttons. To create a full-width button you will need to wrap the button in a tag that has a grid class i.e.: (grid d...

Published a year ago

Regex Get All Images In A Markdown File | PHP

The PHP script below parses and returns the URL and ALT of image tags found in any markdown text. Note: I added support for the HTML image tag as well since markdown is a superset of HTML. ...

Published a year ago

Regex Get All Images In A Markdown File | JS

The script below makes it possible to parse and extract URLs and ALT data of image tags from markdown text using Javascript. ...

Published a year ago

A Row Must Be An Array Or A TableSeparator Instance | Laravel Artisan Fix

If you try using the Laravel artisan output command , you might end up with the error This means whatever the method is getting is either not an array or in a format that is usable by the method. First check to be sure the data being passed is an array. You can use the...

Published a year ago

What Is Code Obfuscation?

Code obfuscation is the art of mangling code in other to make it hard to understand but can still be processed by a compiler or ...