Hi
I'm trying to partially match some strings.
Example:
Code:
livvy lump-beach
orangesty
I'm looking to match, in the first case:
livvy, lump-beach, lump, beach or the entire string [livvy lump-beach[/b].
For the second string, I would only match the entire string: orangesty
To do so, I'm currently using the following.
Code:
$string_1 =~ /\B$string_to_match\B/i;
Even If I use the \B, to match non word boundary, it's doesn't match the string patially.