Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

Remove word "d/o" and "a/l" from a string

Hi,

Would like to know how I can achieve what mentioned above.

$String = "My name is Jenny d/o Bill"
code the delete "d/o" ??
...
$NewString = "My name is Jenny Bill"

Thanks,
Nick
0
n_chai
Asked:
n_chai
  • 2
1 Solution
 
andreifCommented:
($NewString = $String) =~ s(d/o)()g;
0
 
andreifCommented:
sorry, forgot about a/i :)

($NewString = $String) =~ s(d/o|a/i)()g;
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now