Post Reply 
 
Freshness Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gossamer's Regex Quirkshop
Offline 01-05-2017, 01:51 AM
Reply: #28
RE: Gossamer's Regex Quirkshop
(01-04-2017 04:10 AM)AncientE%cursion Wrote:  Purely hypothetical, is it possible to get series of 'A's and '8's to appear as [8[A[8[A]dook instead of [8A8A]dook? As if they were cards covering each other?

Pretty easily, in fact! It comes down to just putting a right bracket at the end of every series, and then a left bracket in front of every letter, which is only a slight tweak in Regex.

Code:
Simple Replacements:
a to A

Regex Replacements:
([AbB]+) to $1]
([AbB]) to [$1
[bB] to 8
Find all replies by this user
Quote this message in a reply
Post Reply 


Messages In This Memo
RE: Gossamer's Regex Quirkshop - Alienoid - 11-07-2016, 12:08 PM
RE: Gossamer's Regex Quirkshop - Fubar - 11-07-2016, 05:13 PM
RE: Gossamer's Regex Quirkshop - Fubar - 11-16-2016, 04:09 PM
RE: Gossamer's Regex Quirkshop - Milomus2 - 11-25-2016, 02:29 PM
RE: Gossamer's Regex Quirkshop - gossamerGadgeteer - 01-05-2017 01:51 AM
RE: Gossamer's Regex Quirkshop - Galtea - 03-02-2018, 02:44 PM
RE: Gossamer's Regex Quirkshop - Galtea - 03-02-2018, 05:51 PM
RE: Gossamer's Regex Quirkshop - nikdun420 - 02-04-2019, 06:49 AM
RE: Gossamer's Regex Quirkshop - nikdun420 - 03-08-2019, 09:11 AM
RE: Gossamer's Regex Quirkshop - Alienoid - 03-02-2019, 09:53 AM
RE: Gossamer's Regex Quirkshop - Alienoid - 03-04-2019, 07:07 PM
RE: Gossamer's Regex Quirkshop - Sir - 07-11-2019, 02:49 AM
RE: Gossamer's Regex Quirkshop - Sir - 07-12-2019, 12:42 AM

Board jump:


User(s) browsing this memo: 1 Guest(s)