57
Views
6
Comments
[RegexLib] Submitting a regex to the component
Question
regexlib
Service icon
Forge asset by glenn michiels

Greetings everyone!


As the component description says this will be a community project, as such we'll be accepting any input you wish to deliver so that we can improve upon this project.

To submit your regex expression to the library you'll have to submit the following:


1. The regex expression: Pretty obvious if you ask me

2. A description of what the expression does: Documentation is the key to success! 

That's it! 

Once our team has validated your expression it will be added to the component by the next release.

Let's build it together!


2021-08-30 15-28-09
Leandro Correa

Very nice! 

2018-09-27 18-20-33
Swatantra Kumar
Champion

I wanted to supply few regex, so quickly navigated component's "Documentation" page, and it's blank. :)


2018-09-27 18-20-33
Swatantra Kumar
Champion

anyway, an example for matching the URL

/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/

2018-10-04 11-30-51
glenn michiels

Swatantra Kumar wrote:

anyway, an example for matching the URL

/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/

Hi Swatantra,

Thank you for your input. Is there any additional info you'd like to add to the regex (like any restrictions or conditions) to be added to the in-code documentation?

Kind regards,

Glenn


2018-09-27 18-20-33
Swatantra Kumar
Champion

Match any HTML tag

/^<([a-z]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)$/

2018-10-04 11-30-51
glenn michiels

Swatantra Kumar wrote:

Match any HTML tag

/^<([a-z]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)$/

Hi Swatantra,

Thank you for your input. Is there any additional info you'd like to add to the regex (like any restrictions or conditions) to be added to the in-code documentation?

Kind regards,

Glenn


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.