regexp_extract Error when put { in pattern
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 06:33 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 07:23 AM
what do you want to achieve with the curly brace? It is a regex character so you can't just add it.
If you want to match on it, you should escape it and perhaps even put it within the quotes.
You can always test your regex in online tools like regex101 or regexr or ... very handy
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 07:37 AM
Hello William,
You have to escape the { as it is a special char in case of regex.
"((^.*))(\{'data':)"