Skip to content

Instantly share code, notes, and snippets.

View andycwilliams's full-sized avatar

Andy Williams andycwilliams

View GitHub Profile
@andycwilliams
andycwilliams / Maven Dependencies Guide.md
Last active November 14, 2023 08:51
Breakdown of common Maven dependencies.

Maven Dependencies:

Add these using Spring Initializr or by manually adding them to your pom.xml. They cover projects using test-driven-development, microservices, containerization, and more. Be sure to use the most up-to-date versions!

Spring Web [ WEB ]:

Allows an application to accept HTTP requests. Build web, including RESTful, applications using Spring MVC. Uses Apache Tomcat as the default embedded container.

<dependency>
@andycwilliams
andycwilliams / Regex-Week17Homework.md
Last active September 8, 2021 21:34
Regex tutorial on how to match a URL

How to Match a URL - Andy's Mode of Code

This is a regular expression (regex) tutorial to demonstrate basic definitions of commonly used parameters in programming. These expressions are powerful and flexible tools to either find or find-and-replace search patterns in strings.

Summary

Regex uses the following program to match a given URL: /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/

Using this line, we are able to determine the validity of the entered website address. This enables the programmer to validate URLs in practically any app or program that they need.