Jump to content

Matching /s or \s before a regex.


jamesmiller

Recommended Posts

Hey Guys,

 

baiscally what I have been trying to accomplish ( i know this will probably be simple but i suck at regex) is to find an occurence of two types of occurences of letters or numbers in a webpage for example 9782378746856  or 078170256X. Each match then needs to be retrieved. I have this, but there is a problem , this problem is that the when some of examples are found they are found with /078170256X and i want to exlude any example that has a / in front of it how could i go about doing this ?

 

Thank you .

 

james

Link to comment
https://forums.phpfreaks.com/topic/246481-matching-s-or-s-before-a-regex/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.