Regex: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[category:tango.info]]
[[Category:Tango.info]]
http://en.wikipedia.org/wiki/Regular_expression
* http://en.wikipedia.org/wiki/Regular_expression
* list of [[identifier]]s with some regex


  ~[\d/\|-\?]*~ - recording date column, could maybe be tighter
  ~[\d/\|-\?]*~ - recording date column, could maybe be tighter
Line 7: Line 8:
  Replace: \([0-9:]*\)$
  Replace: \([0-9:]*\)$
  with:    \t\1
  with:    \t\1
-------
([0-9]{14})
$1\$1.front
^([0-9]{14}).300x300.jpg
$1\graphics\$1.front._tistandard_.300x300.jpg
([0-9]{14})
$1\graphics\$1
-------
find short track duration notation
^([0-9]):([0-9]{2})$

Latest revision as of 2014-04-13T02:20:37

~[\d/\|-\?]*~ - recording date column, could maybe be tighter

convert track listing with playtime to tabular data

Replace: \([0-9:]*\)$
with:    \t\1

([0-9]{14})
$1\$1.front
^([0-9]{14}).300x300.jpg
$1\graphics\$1.front._tistandard_.300x300.jpg
([0-9]{14})
$1\graphics\$1

find short track duration notation

^([0-9]):([0-9]{2})$