Re: Better Regrex

2011-03-23 Thread Mike Blezien
- Original Message - From: "Chas. Owens" To: "Mike Blezien" Cc: "Perl List" Sent: Wednesday, March 23, 2011 8:42 AM Subject: Re: Better Regrex On Wed, Mar 23, 2011 at 09:05, Mike Blezien wrote: Hello, I'm working on a simple regrex issue which

Re: Better Regrex

2011-03-23 Thread Chas. Owens
On Wed, Mar 23, 2011 at 09:05, Mike Blezien wrote: > 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

Re: Better Regrex

2011-03-23 Thread Brian Fraser
Regex, or maybe regexp, but not regrex.. That doesn't make any sense : p I have no idea what you mean with "section in red." However, there's a few things wrong with your code: What is $mark? Don't you mean $marker? As it stands, your snipped would die under strict, and in non-strict $mark would b

Better Regrex

2011-03-23 Thread Mike Blezien
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 #inspirati