Skip to content

Tag: regex

Capture word after first dot and before second dot

i have some strings like: I’m trying to write a regex that makes the first two string pass, but not the third one. The rule is that if the string contains the word “router” after the first dot and before the second dot it’s ok. i tried with but it match every .router. in my string, so …

How to scrape

so I am trying to figure out how I can possible scrape a javascript tag using regex which I believe might be the easiest way. The tag looks like: and I want to scrape all Label Whaht I tried to do is: but it only returned an empty value of [] so I am here asking what can I do

Regex windows path validator

I’ve tried to find a windows file path validation for Javascript, but none seemed to fulfill the requirements I wanted, so I decided to build it myself. The requirements are the following: the path should not be empty may begin with x:, x:\, , // and followed by a filename (no file extension required) f…