![]() | |||||||
Perl match for brackets [] Is there a way to search for a [ in Perl using character codes or other methds? I have tried a \[ escape but that does not work. for example $string = =~ s/[//; Will not work because perl sees the [ and thinks it is an unclosed statement. |
you need to place your backslash before the special character. Are you saying you have tried this? If not i believe this is what it should look like. $string =~ /\[/; |
| All times are GMT -7. The time now is 08:39 PM. |
Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0