FANDOM


This page describes a bit of regex. It must be used within a script or user-fix.

Regex-button
?!
What it does: don't select this (negative lookahead)
Complexity: basic

?! is a bit of regex that will help you select the text ahead of a certain line as long as it doesn't contain what's after the exclamation point.

Imagine you have the word title. If you want to get rid of the second t but not the first, do this:

python replace.py -page:whatever 't(?!i)' ''

This will return tile, having removed only the t that doesn't precede an i.

Note that if you are running your bot through a Unix command line tool, an error message will be thrown if this ?! syntax is used within "double quotes", but will be accepted if the regex is contained within 'single quotes'.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.