There is a bit of trouble with this.
Say I have a link that can include these values:
Example 1: Example 2: I just need to say that the link is any of those 4 (case is also insensitive) RegEx is required Is there a right Points in the direction - it is not in any particular language, but the software I work on is Java based. Thanks a lot - and I meanwhile! :) You can use just: Balearic | Ibiza | Majorca | Menorca
http://site.com/Menorca
http: // site. Com / Ibiza
/ / URL is your URL variable if (url.matches ("(? I) ^ http: // site \ .com / (Balearic | Ibiza | Marjika | Menorca) \ b. * $")) {// match succeeded Happened}
(? I) will ensure that the case is ignored while comparing it.
No comments:
Post a Comment