Jump to content

Frosty

New Members
  • Posts

    5
  • Joined

  • Last visited

Frosty's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Wow, that's much more eloquent than the one I just come up with: http://([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}(/|:80/)((\w)+(-)+)+\w+/ Many thanks! Issue resolved.
  2. I'm hoping to finish a regex that I've been trying to craft, and would like some advice as I've hit a roadblock . So I have a whole list of urls. I need to only capture 'seo friendly' (typically article/post titles) urls with at least one dash, like: http://thepigeonnest.com:80/passenger-pigeons-ectopistes-migratorius/ http://thepigeonnest.com/pigeon-lover-mike-tyson-to-star-in-pigeon-reality-show/ But, my regex also captures sub-folders without a dash like: http://pinkstripedpig.com/contact/ My regex so far is thus: http://([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}(/|:80/)[a-z0-9-]+/
  3. Many thanks you two! This works fine for the most part, although it hits a snag when the text contains either "No." (as in number), and percentages like "8.25%".
  4. As a beginner to regexes I've made some headway in solving some scenarios, but am having an issue with a crafting a regex that does a particular job! So I'm trying to target a single sentence. The regex needs to start with a single capital letter, and then ends at a full stop. But like most sentences, it will include other stuff like: commas, single/double quotes, parenthesis, and all other manner of things. Been using a regex that I stumbed upon that managed to carry out the first object (target), but can't seem to limit it to one.
  5. I also have this great regex software. For a beginner (like myself), it also provides explanations and points out any regex errors. Jan is also helpful at her regexbuddy forum.
  6. Howdy y'all! Just to say hello, & look forward to asking stupid questions here oh PHP Freaks. Tony.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.