Jump to content
Ketarin forum

Regex Help


jadog
 Share

Recommended Posts

I am trying to get a match for the following url:

 

http://modmii.googlecode.com/files/ModMii4.4.9.zip

 

However, there is also a french version that I DON't want. It shows up first, so how do a create a regex statement that excludes the FR? The url that it keeps giving me is:

 

http://modmii.googlecode.com/files/ModMii_FR_4.4.9.zip

 

 

Any help would be appreciated! Thanks

Link to comment
Share on other sites

I am trying to get a match for the following url:

 

http://modmii.googlecode.com/files/ModMii4.4.9.zip

 

However, there is also a french version that I DON't want. It shows up first, so how do a create a regex statement that excludes the FR? The url that it keeps giving me is:

 

http://modmii.googlecode.com/files/ModMii_FR_4.4.9.zip

 

 

Any help would be appreciated! Thanks

Im not very experienced with regex so Omni or someone else will problably soon post something much better but in the meantime:

http://modmii.googlecode.com/files/.{0,11}.zip

 

This will not capture the FR version because it has 15 characters between files/ and .zip where as the regex looks for maximum of 11 characters.

 

Very...err simple regex :D

Link to comment
Share on other sites

download tags are usually surrounded by either ' or "

 

If the match 'included' them you would have an invalid download url

 

It helps narrow down searches as they are characters that obviously cannot exist within a valid download URL

 

Again most downloads start with either the = " ' characters

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

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