View Single Post
Old 01-16-2023, 08:52 PM   #7957
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,188
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by ownedbycats View Post
Take a look at this:
https://regex101.com/r/BgWNVN/1

Note that the regex captures all three examples, but only "Half-Life" is in the capture group. In a regex substitution, \1 simply puts the selected group back in.
Thanks! I've been using some of these codes with no clue why the worked.
Amalthia is offline   Reply With Quote