
hydpm
User
Jun 11, 2008, 2:20 PM
Post #1 of 5
(9188 views)
|
Reg ex for English (United States)
|
Can't Post
|
|
Hi, $Language = English (United States) [It may be English (United Kingdom) some times] English (United States) is present in my data input , but the below condition not working. if ($_ =~ /$Language/ ) { } When i replace manually AS below it works if($_ =~ / English \(United States \) /) { } I need a generalized reg ex to work for these if i can search and replace "(" and ")" as "\(" and "\)". If there is any function to add slashes for the special characters or some mechanism like that helps me. Can some one help me for this? Thanks Raj
|