itsjoshbruce, (edited )
@itsjoshbruce@phpc.social avatar

isn't my normal deal so any assistance would be greatly appreciated. See if there's someone who can beat me to it. lol

{!! date:
created=2023-01-01
!!}

I want to match everything between the opening and closing.

solution that seems to work:

{!!([\S\s]*?)!!}

barubary,

@itsjoshbruce You didn't specify what language/tool you're using (they all differ in how their regexes work), so here's a vim solution:

{!!zs_.{-}ze!!}<br></br>
itsjoshbruce,
@itsjoshbruce@phpc.social avatar

@barubary: That’s fair and I’ll try to remember in the future. The amount of times I’ve used regex I can’t on one finger and the iterations on two. lol

Good to know for the future though.

allenholub,

@itsjoshbruce
{!!.*?!!}

if that doesn't work for some reason:

{!![^!]*!!}

Here's a good tester: https://regex101.com/

and test it using two instances of that input string. Depending on the recognizer you're using, you may not have to escape the !.

itsjoshbruce,
@itsjoshbruce@phpc.social avatar

@allenholub: It didn't seem to work for me.

Just found this one, though:

{!!([\S\s]*?)!!}

allenholub,

@itsjoshbruce That'll work. I forgot that "." doesn't match end of line. The [\S\s] means any white or non-white character, so it sucks up the newline.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • kavyap
  • thenastyranch
  • GTA5RPClips
  • tester
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • cisconetworking
  • megavids
  • khanakhh
  • normalnudes
  • osvaldo12
  • cubers
  • tacticalgear
  • Durango
  • ethstaker
  • modclub
  • anitta
  • provamag3
  • Leos
  • JUstTest
  • lostlight
  • All magazines