On refiddle.com set to JavaScript, try using this pattern
/\|(?![^{]*})/g
with this text
word1 | {word2 | word3 } | word 4 | word 4 | {word2 | word3 }
This should match all of the Pipe symbols that are not inside {}.
Related Contents:
- Regular expression to stop at first match
- Simple regular expression for a decimal with a precision of 2
- Difference between * and + regex
- bash regex with quotes?
- Regular Expression For Duplicate Words
- What is a regular expression which will match a valid domain name without a subdomain?
- Regular expression to match standard 10 digit phone number
- Regex to match string containing two names in any order
- Decimal number regular expression, where digit after decimal is optional
- Extract info inside all parenthesis in R
- Insert commas into number string
- Check if a string matches a regex in Bash script
- Regular Expression Arabic characters and numbers only
- What flavor of Regex does Visual Studio Code use?
- Mail::RFC822::Address Regex
- Create new column in dataframe based on partial string matching other column
- How to exclude a specific string constant? [duplicate]
- Regex: Determine if two regular expressions could match for the same input?
- Regex: match pattern as long as it’s not in the beginning
- Is it possible to increment numbers using regex substitution?
- How to ignore whitespace in a regular expression subject string?
- How is the AND/OR operator represented as in Regular Expressions?
- sed one-liner to convert all uppercase to lowercase?
- Regular expression for youtube links
- Regular expression to match last number in a string
- How do I use regular expressions in bash scripts?
- regex to match a word with unique (non-repeating) characters
- Regex look behind in VS Code?
- 301 Redirect to replace all spaces to hyphens
- Phone validation regex
- C++0x regex in GCC
- Removing empty lines in Notepad++
- Why does character range class [A-z] match underscore?
- Regex to match any character including new lines
- Symbol for any number of any characters in regex?
- Add slash to the end of every url (need rewrite rule for nginx)
- Matching math expression with regular expression?
- How to use awk variables in regular expressions?
- Mongodb match accented characters as underlying character
- Searching for all variations of hyphens and dashes in Regex
- Regex to match an ISO 8601 datetime string
- What’s wrong with my lookahead regex in GNU sed?
- Regex with replace in Golang
- Why can’t you use repetition quantifiers in zero-width look behind assertions?
- Remove everything except regex match in Vim
- apache HTTP:X-Forwarded-Proto in .htaccess is causing redirect loop in dev environment
- Counting number of occurrences of a string inside another (Perl)
- Does \w match all alphanumeric characters defined in the Unicode standard?
- Regular expression for password (at least 2 digits and one special character and minimum length 8)
- Rename files using regular expression in linux