Danny Wong: Hello,
On Thu, Mar 19, 2015 at 09:25:02PM +0000, Danny Wong (dannwong) wrote: > Hi Perl GURU, I have a string like this: > > 'Baseline: (_bMgvUBQ_EeKsP6DECdq0Lg) 1 "Initial Baseline" > "Initial Baseline of Component NGP-Diagnostics" Sivakumar Subas > Oct 12, 2012 12:35:41 AM'; > > I’m trying to perform a split via \s (spaces) delimiter, but > this give me a partial return of "Initial Baseline” (returns > Initial). Is there a regex where I can split using space as the > delimiter, but get all the words inside a quote string? It seems that you have figured this out by yourself, but a few tips for future reference: You may wish to configure your mail user agent (client) to send plain text E-mails instead of HTML. I believe that many of us prefer it. You should also learn how to properly send plain text E-mails and generally proper netiquette for mailing list usage (it varies list to list, and I don't know that this is a hard "rule" here, but IMO it would help). On that same note, avoid using "rich text" styling to communicate ideas because not all readers will be able to see it. It appears that you tried to color parts of the text in red to emphasis them. I didn't see this from mutt where I normally read mailing list posts. I noticed it when I happened to open the same thread from the Gmail Web interface. Lastly, if you're having trouble with Perl code it is always a good idea to post the code you're struggling with. It's a little bit difficult to understand what you were having trouble with, but if you had posted code then there would have been several anxious persons able to spot the problem and rushing to be the first to reply. :) Regards, -- Brandon McCaig <bamcc...@gmail.com> <bamcc...@castopulence.org> Castopulence Software <https://www.castopulence.org/> Blog <http://www.bambams.ca/> perl -E '$_=q{V zrna gur orfg jvgu jung V fnl. }. q{Vg qbrfa'\''g nyjnlf fbhaq gung jnl.}; tr/A-Ma-mN-Zn-z/N-Zn-zA-Ma-m/;say'
signature.asc
Description: Digital signature