Leah :neocat_blush_hide: :v_trans: on Nostr: Hey #regex people! Im struggling with making a regex. I want to make a regex that ...
Hey #regex people!
Im struggling with making a regex.
I want to make a regex that detects stuff between { and } and ignores it if the between contains an equals sign.
I have got here: `/\{([^,{}]*(=)[^{}]*)\}/gs` which selects stuff between { and } but only if it has an equal sign (the opposite of what I want... but I cant figure out how to flip it)
https://woem.men/files/960d6bef-9563-44fc-9686-0d5f0e03b036
Im struggling with making a regex.
I want to make a regex that detects stuff between { and } and ignores it if the between contains an equals sign.
I have got here: `/\{([^,{}]*(=)[^{}]*)\}/gs` which selects stuff between { and } but only if it has an equal sign (the opposite of what I want... but I cant figure out how to flip it)
https://woem.men/files/960d6bef-9563-44fc-9686-0d5f0e03b036