|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm having a little trouble with regular expressions:
Code:
$string = "blablablablablablaB6"; (B6 = hex char B6)
if($string =~ m/\xB6/) {
do this;
do that;
$string =~ s/\xB6//g;
}
the B6 char should be removed from the string, but it doesn't work!?! Why doesn't $string =~ s/\xB6//g; work? |
|
#2
|
|||
|
|||
|
try removing the \x
$string =~ m/B6/; $string =~ s/B6//g; |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Hexadecimal chars in regexp |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|