Explore RegEx on Experts Exchange

Expert Solutions for Your Tech Problems

RegExRegular Expressions

A regular expression ("regex") is a sequence of characters that define a search pattern, mainly for use in pattern matching with strings,...

Read more
  • 7.5K Content
  • 2.6K Contributors

Expert Spotlight
Web Developer, specialising in WordPress

IT consultant and specialist in WordPress website management

Troubleshooting Solution

Regex to avoid javascript in TinyMCE richtext box

byAlHal2
6

I'm using this Regex to validate the content of a TinyMCE richtext box.  This is an MVC application

Troubleshooting Solution

JavaScript regex:  delimited content not being copied and pasted in the replacement string as intended.

3

I need to know why this code:




is resulting in this output in the dev console in chrome at runtime:




Troubleshooting Solution

Regex to Change Underscores to Dashes

5

Is there a way in Regex to change within a captured group all underscores to dashes?  In this

Troubleshooting Solution

Build File name from part Number Suffix and Prefix with Regex in excel.

4

I'm not very experienced with Regex in excel. I have a column field with part numbers, they are

Troubleshooting Solution

Looking for a SQL based solution to remove double quotes from all JSON property names. I'm using SQL SERVER 2019

2

Looking for a SQL based solution to remove double quotes from all JSON property names. Does anyone

Troubleshooting Solution

JavaScript Regex Needed

byMJ
3

What is the JS regex to test for this situation? If a host name contains either "dmc-" or "preview."

Troubleshooting Solution

JS Regx to Return First Two Subdomains & TLD of Host?

byMJ
4

Is it possible to make a JS regex like this (example below returns the full host name):

Into a regex

Troubleshooting Solution

Issue with LibreCalc =search()

2

I have a Libre Calc (7.3) worksheet with a Text string in column C that is n Alpha characters

Troubleshooting Solution
Troubleshooting Solution

how to use aria-invalid attribute to mimic pattern matching on textareas and display a custom error message??

6

I'm building a website response form, and running into the limits of my JavaScript skills. My basic

Troubleshooting Solution

How can I add pattern-matching to textarea form inputs?

3

I'm building a "contact us" type email form. It's a very simple form with only four inputs: name,

Troubleshooting Solution

Is there something wrong with const emailRegex = /[\w\.-]+@[\w\._-]+\.[a-zA-Z]{2,4}+/;  that I just don't see?

7

Still struggling with regex!  I'm getting the following error message when creating a JS regex

Troubleshooting Solution

What is the correct regex syntax to use in JS?

2

I have the following regex in an HTML form:

Is this correct syntax when using it in JavaScript:




Troubleshooting Solution
Troubleshooting Solution

What regex string will match for ', " or -

5

My ultimate goal is to use pattern matching + JS to verify a textarea input is valid standard

Troubleshooting Solution

RegEx | Find (2) substrings inside anywhere in input string, ignore case.

13

Need assistance with constructing a regular expression to match two given strings, at any position

Troubleshooting Solution

Regular Expression needed to Alter URL on WPengine hosted website using Nginx

1

So we recently migrated a site over from Joomla to wordpress - we were able to get the permalinks to

Troubleshooting Solution

How can I verify textarea inputted text against a regEX pattern?

1

I have a short form that verifies user inputs in real time (when the content is first entered, not

Troubleshooting Solution

Pattern matching in SQL server

4

I need to determine which carrier shipped a package from the tracking number using the using

Troubleshooting Solution

What does "preg" in "preg_match" stand for?

3

"regex" stands for "regular expression."


"preg_match..." What does "preg" stand for?


Just one of those

Do more with Experts Exchange.


Get Answers

Join a Group Discussion

Collaborate

Monitor your Site

Explore solutions and more