Published a year ago
Matching Markdown And HTML Headings Using Regex (JS)The Javascript code below matches the different types of headings in a Markdown string. This includes HTML headings since Markdown is a superset of HTML. The different types of headings the script matches are: Markdown hash based heading: Thus , , , , etc. A...
Published a year ago
How To Save Command Line Outputs To A FileDuring web development, you will typically have a local server running. For example, in Laravel you will run to start an HTTP server. With the server running, each time you load up a page you get an influx of logs within your terminal, thankfully all error and warning logs that show up wi...
Published a year ago
Regex For Validating Emails|explainedValidating an email address at first glance seems like an easy task but just thinking about what qualifies to be used as the name section of the email or what should be considered a valid TLD could lead to complex implementations. To combat these issues software developers employ simple ...
Published a year ago
How To Render A String As A Blade Template (Laravel 9)Laravel 9 came with a lot of goodies and one of them is the ability to render a view from a blade template stored as a string. This could come from a database or dynamically generated from code. Anyways this is something you can achieve with the undocumented method but requires pai...
Published a year ago
Avoid Using Target Blank If You Canis an tag attribute that causes a link to open up in a new tab. There is also thus without the underscore , this causes every link you click on from the parent page to open up in the same new tab. You can set to any value and all links with the same target value will be previewed using...