question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting \g in a regular expression

See original GitHub issue

Issue type:

  • ❓ Question

Question:

Is there a way to set the global regex flag? also is this accurate?: https://github.com/google/re2/wiki/Syntax

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DraGonFiirEcommented, Aug 22, 2021

regex_scan worked with integer 0 My error was using index_of_regex and assuming the resulting integer is the index of the group that regex_scan needs Thanks a lot for your time! 😃

1reaction
rubensworkscommented, Aug 22, 2021

Could you try with regex_scan instead?

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript RegExp g Modifier - W3Schools
Definition and Usage. The "g" modifier specifies a global match. A global match finds all matches (compared to only the first).
Read more >
The flag /g of JavaScript's regular expressions - 2ality
This blog post describes when and how to use regular expressions whose flag /g is set and what can go wrong.
Read more >
RegExp.prototype.global - JavaScript - MDN Web Docs
RegExp.prototype.global has the value true if the g flag was used; otherwise, false . The g flag indicates that the regular expression should...
Read more >
Regular Expression (Regex) Tutorial
A Regular Expression (or Regex) is a pattern (or filter) that describes a set of strings that matches the pattern. In other words,...
Read more >
Regular Expressions :: Eloquent JavaScript
The first argument can also be a regular expression, in which case the first match of the regular expression is replaced. When a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found