Match all instances of character except the first one, without lookbehind

I’m struggling with this simple regex that is not working correctly in Safari: (?<=?.*)? It should match each ?, except of the first one. I know that lookbehind is not working on Safari yet, but …

Javascript Regex multiple search in two words

I want to transfer the results between Regex and two words to an array, but unfortunately I couldn’t this. Can you help me? In this text [row] Row text1 [rowEnd] [row] Row text2 [rowEnd] I will …

Regex: remove everything except the letters and separator

I am currently using replace statements to replace certain parts of a string. I think my code is a bit over the top and could be simplified: const locales = ‘fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0….

Match text between single quotes, double quotes, or no quotes at all

I’m trying to parse CLI-like arguments that could be enclosed in single quotes, double quotes, or no quotes at all. Here’s an example of what I’m trying to get: // –message “This is a ‘quoted’ …

Javascript – How to extract text with regex

I am new to Regexes. Now I need to write one to suit my needs. I have this string: 1 [00:00:12.00 – 00:01:20.00] Hello there – I’ve come to help you. I would somehow need to bring it to this form: …

Regex expression to match certain url behavior in my website

I have the following url https://myurl/blogs// I’ve trying to create a regEx so i can thrigger a script only when i’m in an article. i tried this among other …

How to get the value of prop (which could be multi-line) in JSX tag using regex?

I want to get the value of title props from these JSX elements,

Prevent regex from becoming greedy when using optional tokens?

I’m trying to use regex to extract information from different strings. For example, I have the following JSON: { “id”: 1, “title”: “test”, // comment “cost”: &…

WIX Velo – Extracting Domain from User Email – Regex Issue

I am trying to retrieve the domain of my site users in order to assign them specific organisation based privileges. If their email address is email@example.com, I want to extract example. If it’s …

REGEX – Match a pattern in a lengthy string

I am trying to match a particular pattern in a lengthy string: NEW ZEALAND AND (data.operator1:”SHELL AND AMP” AND data.field:”NEW ZEALAND”) OR (data.operator:purpose AND data….