Could anyone help me with this problem please:
I would like to match the letters "E", "N" and "L" in a string. All these letters must be present, but in any order.
Therefore, the following are possible:
[red]"ENL" or "ELN" or "LEN" or "ELN" or "NEL" or "NLE" etc...[/red]
I thought something like this maight work:
[red]if( $string =~ m/ELN/g ){
#Do something...
}[/red]
but it doesn't seem to.
Thanks in advance for any help.
Cheers,
James.
I would like to match the letters "E", "N" and "L" in a string. All these letters must be present, but in any order.
Therefore, the following are possible:
[red]"ENL" or "ELN" or "LEN" or "ELN" or "NEL" or "NLE" etc...[/red]
I thought something like this maight work:
[red]if( $string =~ m/ELN/g ){
#Do something...
}[/red]
but it doesn't seem to.
Thanks in advance for any help.
Cheers,
James.