User:Smallman12q/Regex
Appearance
Some regex code
- For capturing references in a page
<ref>+.{10,400}</ref>
- For capturing references and reference names(that aren't empty) in a page
<ref( name[ ]?=[ ]?"+.{1,35}"[ ]?|)>+.{2,400}</ref>
- For capturing references that use {{cite news}}
<ref( name[ ]?=[ ]?"+.{1,35}"[ ]?|)>([ ]?){{cite news([ ]?)[|]+.{2,400}?}}[ ]?</ref>