SOLVED
Regular expression
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
tutankamon
7 - Meteor
‎02-27-2019
04:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi everyone!
I am having a lot of trouble with regular expressions and don't find the right one. I have a .html file with lots of data and many web pages written on it. I would need a regular expression that selects a web page with the following pattern:
- starts with "https:"
-finishes with ".com"
-"google" does not show up in the web page
Thank you very much in advance!
Solved! Go to Solution.
Labels:
- Labels:
- Regex
1 REPLY 1
SamDesk
11 - Bolide
‎02-27-2019
04:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @tutankamon,
^(?!.*google)https:.+\.com$
This should work for you, it matches anything starting with "https:" and ends in ".com" with "google" being nowhere in the string.
https://regexr.com | Match |
https://regexr.com\ | No match |
https://google.com\ | No match |
https://www.google.com | No match |
Sam :)
Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.
