ccowgill
2008-03-19, 06:40 PM
Is there a way to trim a string so only a particular pattern is left, using wildcards or something similar?
if the string matches this pattern:
*`,*`,*`,*`,*.*
eliminate everything except this pattern:
`,*.
if the string matches this pattern:
*`,*`,*`,*`,*.*
eliminate everything except this pattern:
`,*.