I’m working on the following function which I had to add a few IFs in case the string was shorter than the format the REGEX groups was expecting: Is there a way to remove the IFs and get the same output with just Regex? I’m looking for something like: complete: 999.999.999-99 partial: 999.999.9 Because the function will be called when
Tag: regex-group
How to get the value of prop (which could be multi-line) in JSX tag using regex?
I want to get the value of title props from these JSX elements,
How to extend regex to accept @ in image urls
I have a regex for validating image urls, however some of the images are using @ for example: https://test.com/[email protected] How can I extend this regex to accept also the @ character inside of …