Hello, I'm working on a simple regrex issue which I got to work but I think there's a better way to do this. This is what I have right now. I need to simply remove the string section in red.
my($marker); my $message = "Why are we here? To bless, inspire and uplift one another. #TRB #inspiration #loa"; if($message =~ /\#(.*)/i) { $marker = $1; } $message =~ s!$mark!!gi; $message =~ s!\#!!gi; #Resulting String wanted: Why are we here? To bless, inspire and uplift one another. The method I'm using above works and we get the results wanted but I was looking at it again and I think there's a better way to do this. Any suggested would be appreciated. Thx's Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-