Main Page

Difference between revisions of "User:Electrolytes/Regex Semi-autocovert/WeaponsPage"

From Arks-Visiphone
Jump to navigation Jump to search
m
m
Line 9: Line 9:
 
<hr>Find:
 
<hr>Find:
 
<pre>
 
<pre>
<tr>.*?class=\"([\w]*)\">(\d*)★.*?rel=\"(\w*)\".*?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>
+
<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>
 
</pre>
 
</pre>
 
Replace:
 
Replace:

Revision as of 17:29, 4 February 2016


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\|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\|Properties   = $42\r\n\|Classes      = $43\r\n\|Description  = $44\r\n\|GrindCost    = \r\n\|AttributeCost= \r\n\|AffixCost    = \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