Main Page

User:Electrolytes/Regex Semi-autocovert/WeaponsPage

From Arks-Visiphone
Jump to navigation Jump to search

Find:

rel=\"([^\"]*)

Replace:

rel=\"WeaponTypePlural

Find:

<tr>.*?class=\"([\w]*)\">(\d*)★.*?rel=\"([^\"]*)\".*?all\(this\)..([^<]*).*?title.*?>([^<]*).*?<td>([\d]*)....([-\w]*).*?<td>.*?<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(\d*)<[br\/]*>(\d*)<[br\/]*>(\d*)<td>(.*?)<td.*?>(.*?)<td.*?>(.*?)<td.*?>(.*?)<\/tr>

Replace:

\{\{Weapon\/sandbox\r\n\|Image        = \[\[File\:$5Full\.png\]\]\r\n\|Rarity       = $2\r\n\|EnglishName  = $5\r\n\|JapaneseName = $4\r\n\|SEAName      = \r\n\|WeaponType   = $3\r\n\|ReqStat      = $7\r\n\|ReqValue     = $6\r\n\|SATK+0       = $8\r\n\|RATK+0       = $9\r\n\|TATK+0       = $10\r\n\|SATK+10      = $38\r\n\|RATK+10      = $39\r\n\|TATK+10      = $40\r\n\|GrindCost    = \r\n\|AttributeCost= \r\n\|AffixCost    = \r\n\|Properties   = $42\r\n\|Classes      = $43\r\n\|Description  = $44\r\n\|DescJP       = \r\n\|DescSEA      = \r\n\}\}\r\n== Drop Info ==\r\n\r\n== Additional Info ==\r\n\r\n\[\[Category\:$3\]\]\r\n\r\n

Find:

<img.*?attribute.*?title=\"(\w*)[^\d]*(\d*)

Replace:

\[\[File\:$1\.png\]\] $2

Find:

<img.*?title=\"Ability\".*?title=\"([^\"]*)\"> ([^<]*).*?>

Replace:

\{\{props\|$2\}\} 

Find:

<img.*?title=\"Potential\".*?title=\"([^\"]*)\"> ([^<]*).*?>

Replace:

\{\{pots\|$2\}\}

Find:

<img.*?title=\"Photon Art\".*?title=\"([^\"]*)\"> ([^<]*).*?>

Replace:

\[\[File\:Photon Art\.png\]\] \{\{abbr\|$2\|$1\}\}

Find:

<img.*?title=\"Technique\".*?title=\"([^\"]*)\"> ([^<]*).*?>

Replace:

\[\[File\:Photon Art\.png\]\] \{\{abbr\|$2\|$1\}\}

Find:

<img.*?class_.*?title=\"((\w\w)\w*)..>

Replace:

\{\{Icons\|$1\}\} 

Find:

<img.*?title=\"All Class\".>

Replace:

\{\{Icons\|AllClass\}\} 

Remove:

<tr class=\"head.*?\/tr>
<tr class=\"craft.*?\/tr>
<br>

Find:

(Image.*?= \[\[.*?)[ \/]

Replace (recursive until 0 matches):

$1

Find:

(\|Properties.*?)\{\{pots\|(.*?)\}\}

Replace:

\|Potential    = $2\r\n$1

Find:

(\|Properties.*?)\{\{pots\|(.*?)\}\}

Replace:

\|Potential2   = $2\r\n$1

Find:

(\|Properties.*?)\{\{pots\|(.*?)\}\}

Replace:

\|Potential3   = $2\r\n$1

Find:

<a title=.*?>(.*?)<\/a>

Replace:

$1