...capture the job name that is after the colon that could be any character, sets of characters or numbers...But is the job name between the quotes? Include the quotes? Always at the end of the string? Is there a space after the colon, is that part of the name?
Have a gander at the tutorials: perlrequick and perlretut. The perlre doc has the full low down.
Adjust the following to suite.
my ($job) = $str =~ / job : # "...the colon..." \s " # opening quote ( # start capture [^"]+ # one or more of anything that isn't a quote ) # end of capture " # closing quote $ # at the end of the string /x;
In reply to Re^3: Unique Data Formatting
by wfsp
in thread Unique Data Formatting
by raj8
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |