kaisellgren
11-07-2006, 06:29 PM
Hi,
I know regexes quite enough now. I still have some questions i don't know answer myself.
1. What's the point of delimeter? "/regex/" works just like "regex"
2. Why do you need to put double quotes? "/my reg code goes here\\./"
3. Is the regexes in PHP special or are they just like in unixes etc? I see a lot of regexes, do they all work? Is PHP's preg_exes directly copied or a modification?
4. This "/[\w]/" matches all letters,numbers and underline characters. But how you modify it to match onlie letters and underlines etc? Don't suggets [a-zA-Z...] because I need all letters like Ä,ö Å etc and I dont want to make a big list.
I really appreciate if you can even answer in one of the questions.
Thank you!
I know regexes quite enough now. I still have some questions i don't know answer myself.
1. What's the point of delimeter? "/regex/" works just like "regex"
2. Why do you need to put double quotes? "/my reg code goes here\\./"
3. Is the regexes in PHP special or are they just like in unixes etc? I see a lot of regexes, do they all work? Is PHP's preg_exes directly copied or a modification?
4. This "/[\w]/" matches all letters,numbers and underline characters. But how you modify it to match onlie letters and underlines etc? Don't suggets [a-zA-Z...] because I need all letters like Ä,ö Å etc and I dont want to make a big list.
I really appreciate if you can even answer in one of the questions.
Thank you!