From: Lars Haugseth Date: 2012-05-03T04:47:46+09:00 Subject: Re: array of strings - finding letter combinations On 02.05.2012 21:32, Bartosz Dziewo��ski wrote: > 2012/5/2 Sebastjan H.: > | Since the ampersand can also be followed by a capital letter I tried > | this: > | /&[a-z]i/ - I searched the net for modifiers, but I guess this would > | only work on a specific letter? So how to add the possibility of capital > | letter in the regex? > > That would be /&[a-z]/i - note that "i" is outside of "//". Alternatively, you could use /&[[:alpha:]]/, which will also match non-English letters. More information here: http://www.regular-expressions.info/posixbrackets.html -- Lars Haugseth