It’s So Easy A Newbie Can Do It!

Regex / Patterns Made Easy — Java

An Easier Way To Create Regular Expressions!

JumperBot_
2 min readAug 6, 2022
An Image Full Of Colorful Stackable Bricks!
Photo by Sen on Unsplash

Have you experienced trying out a custom-made Pattern / Regex and wondering if it would work at all? Or you tried compilling a regular expression yourself and it just won’t work! Or maybe you wondered:

Is There An Easier Way To Do This?
— Probably You Just 2 mins. Ago Coding Non-stop…

Well then, I’ve got a utility just for you! (~And probably somebody else too!)

  • You can find it → OVER HERE! ← along with my other utilities!
  • The use of it is incredibly simple, let’s try it out with a simple program!
Code Used As A Simple Program!
  • This is the output of our simple program:
This is what the pattern looks like:
(bla.+\s){1,}.+
Does it matches our sample string: blah blach blah ... ?
Yes it does!
This is what it looks like if we replace any match with just the letter 'e':
e

But How Am I Going To Use This In My Code?
— Probably You Again, I Guess.

The class is permissively licensed under the MIT License.

In other words, do whatever you want to do with it as long as you include a copy of my license! Don’t forget to fork and star my repository as a quick “Thank You!” to me (as the maintainer) and to the future contributors!

Want to see me procrastinate but most importantly code?
Go and find out if you’d like My YouTube Channel then!

Want to read another article?
Read — Finding-Patterns-In-A-String — by yours truly.

--

--

JumperBot_

Hey-ya, I develop Android apps , Websites and some CLIs for fun like anyone else out there.