Skip to content
Advertisement

Tag: brackets

Regex to get the word after brackets

I would like to have a Regex select the next word after brackets containing letters. There can be more than multiple brackets following each other before the next word. Example: [X]word[y][Z]another Expected output: word, another I would like also to achieve the same but providing the regex the content between the brackets and get the following word: Example 2: i

JS Regex match numbers between brackets

I have the following code, but getting no output. When I run it here it seems to work: https://regex101.com/r/FVkJfF/1 To clarify, I aim to capture all the values between the brackets if they contain a number (including the opening and closing bracket of that group) Guess I am doing something wrong somewhere? Answer Try this one instead: It matches a

Advertisement