search for: dashesstring

Displaying 1 result from an estimated 1 matches for "dashesstring".

2008 Aug 12
2
perl expression question
...eneral it is the text between the two dashes. I made an attempt using below but perl expressions and myself are an extremely bad match ( pun was intended ) and all I got back was the same string as fileName in both cases. weights=sub("^Agg.(\\.*)-\\.*$", "\1",fileName) dashesstring=sub("^Agg.\\.*-(\\.*)-\\.*$", "\1",fileName) I could possibly using strsplit but I'm trying to learn perl expressions as best I can so a solution using that approach is really appreciated. Thanks.