You're welcome - it's not "forum common rules", it's just common sense - we only get exactly what you type, so the more accurate your question, the better the answer.
To be honest, I wouldn't faff too much with a regex - use it to extract the basics, and then use your presentation language string handling to break the rest up. You'll end up with much more readable code, and given the "vagueness" of your description, it's very likely that something will change or have been forgotten.
It's a lot easier to maintain PL code than a complicated regex!
I'd also suggest that you get a copy of Expresso[^] - it's free, and it examines and generates Regular expressions.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
I want to match exact strings with a vertical bar and square brackets, but I want to match the shortest possible.
Meaning, I want to match the string
not anything in this
[aaa] | [bbb]
[aaa] | [aaa|bbb] (in this example, I only want [aaa|bbb], and want the the first [aaa] be ignored (not matched)
so I can't use the regex:
It can have non-alphabetical chars, like this [aaa|(ccc)bbb], or be in different languages.
What can I do?
So, the concept is to find out if inside an href there is the site name (so that I can understand that it is an internal link) and that it contains the rel="noopener".
I have adapted the regex to the best, modifying it like this:
www.sito.it. * rel = "noopener"
and removing the https: // protocol which can generate errors.
Unfortunately, however, something is still wrong. I state that the regex I need for a seo spider (ScreamingFrog), in which it is possible to set the targeted regex for searches within a website.
I tried but all links containing rel noopener are searched. I'm interested in searching for internal links only, and can be recognized by the name of the site in the link. For example, if the site is https://www.sitoprova.it, in href there must be the name of the site at the beginning of the link, i.e.
The commonest way that people solve this for browsers that don't support this is to think in reverse. In other words, you reverse the string and the regular expression so that all you end up testing is the negative regular expression, rather than a lookbehind. This[^] is a great resource.
My Customer number is in the pattern : 88765
ie. 5 digits alone...
using regex i have to validate if there are any characters and special characters in the customer number. Incase there are any characters (eg: 8AB90) or special characters then my string is invalid.
Please help me with the RegEx for the same.