Jump to content

Matched characters


mattyvx

Recommended Posts

Hi,

 

Something quick and easy...if you know how. I've searched for this and want to know if there is an easier way:

 

Im using some expressions in a mod rewrite scripts and im searching for the best way to include all letters a-z, the '-' and the '(' ')' characters.

 

If i use the expresssion: ([a-z]+) It gives me all the numbers... great! but doesnt let me include -, ( or ).

 

I have it working using ([^/]+) - all characters but the / however this leaves many unwanted characters which could be in the string.

 

So, in question:

 

Best way of including a-z, -, ( and ) in a string.

 

Thanks in advance!

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/185685-matched-characters/
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.