I used this regex: ^[aeiou](\w|\s)*[aeiou]$ for words starting and ending with vowels and it works fine. But when I use this regex: ^[^aeiou](\w|\s)*[^aeiou]$
I have a string: var str = "Lorem ipsum dolor sit amet, consectetur adipiscing elit"; Is there a way to find the longest word in a string using regex? This w
I am trying to extract text from a string, and have trouble with laziness/greediness. In the example I want the piece of text to match <b>I want this pie
I am trying to retrieve the product models from a list of product titles. Since it is difficult to retrieve model from title, I decided starting from getting s
I recently added ripgrep to my list of vim plugins and, immediately after installation, I began receiving this error message whenever I loaded up vim: Error det
I need to write a strict regular expression to replace certain values in my pandas dataframe. This is an issue that was raised after solving the question that I
I was looking for a regex to match words with hyphens and/or apostrophes. So far, I have: (\w+([-'])(\w+)?[']?(\w+)) and that works most of the time, though
I need to highlight a certain characters from a string, I tried str_replace and preg_replace. But these work only if full word is entered, $text = str_replace(
In Cypress, .contains command yields all matching elements, so for clicking in a dropdown item with a text on it, .contains works fine. But I'm facing the probl
I am trying to get 2 functions to validate an SSID and WPA2 passcode. function isValidSSID(ssid) { return (regex) } and function isValidWPA(passcode)
Context In my daily job I lost a lot of time putting values in excel from a balance sheet manually, so I start learning how to code in python to speed up my wor
I'm trying to screen double quotes in regular expression on Google Sheets and there's no luck. A1 cell text = some "name" My formula =REGEXEXTRACT(A1;"\"(.*)\"
I have a custom validator for money fields, it accepts values like 12,00$ 122.04$ 12123123 Now, I want to make it accept theese values: 1 200$ 1 200,22$ So ac
I have a requirement in my project whereby we have some input boxes and we are supposed to enter timings. Timings can be entered in any format i.e 12:30a or 12
Is it possible to use regex to replace all characters in a card number with an X, except for the left-outer 4-digits and right-outer 4-digits, when the card num
How come this code returns true? string to match: ab pattern: /^a|b$/ but when I put parentheses like this: pattern: /^(a|b)$/ it will then return false.
I'm new to scripting and have been reading about how to use regular expressions. I want to fetch the complete line matching a pattern. My output is: 64 bytes fr
There's an input of strings that are composed of only digits, i.e., integer numbers. How can I write a regular expression that will accept all the numbers excep
Could someone please look at the following function and explain the regex for me as I don't understand it and I don't like using something I don't understand as
I'm writing a simple debugging program that takes as input simple strings that can contain stars to indicate a wildcard match-any *.wav // matches <anythin