Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regex madness...
#4
Macro Macro
Code:
Copy      Help
str Coll=
;Name.OfTheFile001
;NameOf.The_9File-02
;Name.OfThe.File.3
str match
foreach _s Coll
,findrx(_s ".*?(?=\d*$)" 0 0 match);;0 or more any character non-greedy (so doesn't capture the digits at the end), followed by 0 or more digits which are followed by end of the line
,out match


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)