Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Question

Tweeted twitter.com/StackCodeGolf/status/873172206804770816
Post Reopened by ETHproductions, Mayube, Okx, Stephen, Community Bot
added 223 characters in body
Source Link
user58826
user58826

You must make a regex that matches everything except itself. For example, PPCG must not match PPCG, but must match everything else, like something, PPC, and PPCG!.

Surrounding slashes are not considered part of the regex in flavors where they are usually part of the syntax. The same is true of all delimiters.

The regex needs to match the entire string, not just a substring.

You may choose your flavor, but you can't use a flavor newer than this challenge. Please pick a flavor that is easily tested.

Shortest regex in bytes wins.

(Sandbox (deleted))

You must make a regex that matches everything except itself. For example, PPCG must not match PPCG, but must match everything else, like something, PPC, and PPCG!.

Shortest regex in bytes wins.

(Sandbox (deleted))

You must make a regex that matches everything except itself. For example, PPCG must not match PPCG, but must match everything else, like something, PPC, and PPCG!.

Surrounding slashes are not considered part of the regex in flavors where they are usually part of the syntax. The same is true of all delimiters.

The regex needs to match the entire string, not just a substring.

You may choose your flavor, but you can't use a flavor newer than this challenge. Please pick a flavor that is easily tested.

Shortest regex in bytes wins.

(Sandbox (deleted))

added 7 characters in body
Source Link
user58826
user58826

You must make a regex that matches everything except itself. For example, PPCG must not match PPCG, but must match everything else, like something,PPC, and PPCG!.

Shortest regex in bytes wins.

(Sandbox (deleted))

You must make a regex that matches everything except itself. For example, PPCG must not match PPCG, but must match everything else, like something, and PPCG!.

Shortest regex in bytes wins.

(Sandbox (deleted))

You must make a regex that matches everything except itself. For example, PPCG must not match PPCG, but must match everything else, like something,PPC, and PPCG!.

Shortest regex in bytes wins.

(Sandbox (deleted))

Post Closed as "Needs details or clarity" by Martin Ender
deleted 215 characters in body
Source Link
user58826
user58826

You must make a regex that matches everything except itself, including delimiters. For example, /PPCG/ must not match /PPCG/, but must match everything else, like something, and PPCG!. If your language allows compiling regexes from strings, you can argue that the quotes are your delimiters, and use those. You must use a common regex flavor (eg. older than this challenge.)

Shortest regex in bytes wins.

(Sandbox (deleted))

You must make a regex that matches everything except itself, including delimiters. For example, /PPCG/ must not match /PPCG/, but must match everything else, like something, and PPCG. If your language allows compiling regexes from strings, you can argue that the quotes are your delimiters, and use those. You must use a common regex flavor (eg. older than this challenge.)

Shortest regex in bytes wins.

(Sandbox (deleted))

You must make a regex that matches everything except itself. For example, PPCG must not match PPCG, but must match everything else, like something, and PPCG!.

Shortest regex in bytes wins.

(Sandbox (deleted))

edited tags
Link
Okx
  • 16.5k
  • 5
  • 45
  • 114
Loading
added 33 characters in body
Source Link
user58826
user58826
Loading
Source Link
user58826
user58826
Loading

AltStyle によって変換されたページ (->オリジナル) /