Category "regex"

Using REGEXP_Substr in db for more than one condition

Hi i'm using SQL Query in ORACLE db. How can i use the function REGEXP_SUBSTR (oracle SQL) to create a new column with name "VOIE" that contains just the type o

Python regular expression for consonants and vowels

I was trying to create a regular expression which would allow any number of consonants , or any number of vowels , or a mix of consonants and vowels such that w

jenkins builds filtering based on build description

Is there a way to filter out a job's builds based on description matching with build name. Each build name is set by build name setter plugin, and want to filte

Regex expression for parsing SQL Server schema and tablename

I am trying to parse schema and table name using a regular expression. I am using C# (.NET Core) and System.Text.RegularExpressions. Here are examples how the

Regular Expression Wildcard Matching

I have a list of about 120 thousand english words (basically every word in the language). I need a regular expression that would allow searching through these

Substitute integers and dots with regex [duplicate]

I have the following string and I need to substitute the numbers and dot with a star: FOO_BAR_FOOBA_1_R:FOO_1.0 I tried the following but I j

Regex to replace all password with ***

I have the following json: Data: {"Account":"d\\adm","Password":"cWExZjEiMTM="},"SqlServer":{"InstanceName":"","MachineName":"MyMachine","Port":null} I would

How can I extract a number from a string in JavaScript?

I have a string in JavaScript (e.g #box2) and I just want the 2 from it. I tried: var thestring = $(this).attr('href'); var thenum = thestring.replace( /(^.+)(\

How can I match Portuguese license plates in a single regular expression?

I was building a regex to validate Portuguese license plates however, the old ones come in a different format, and I would like to know if it is possible to val

regular expression not to allow zero

regular expression not to allow zero it should allow 0.0000001 as value but should not allow to enter 0. I need validator not javascript

regular expression to copy line with some changes, mirror

I have a code in each html page that I want to duplicate, while add some changes: Example: <title>Any text (even if includes :.,</title> Output:

Regex to match word delimiters in multilingual text

I have a text box that a user can input any text in any language in and I need to split that text into words so that I could pass those words into hunspell spel

IDN (Domain) validation with regular expression

I want to check some domains with regular expression (regex). My old code was: /^([a-z0-9]+([-a-z0-9]*[a-z0-9]+)?.){0,}([a-z0-9]+([-a-z0-9]*[a-z0-9]+)?){1,63}(

Simple - using String#scan to extract an email address

I've got a string that contains: @from = "John Doe <[email protected]>" When I do: @from.scan('/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i') I

Validation code for IDN (Domain) with regex (regular expression)

I want to check domains with regex. My old code was: /^([a-z0-9]+([-a-z0-9]*[a-z0-9]+)?.){0,}([a-z0-9]+([-a-z0-9]*[a-z0-9]+)?){1,63}(.[a-z0-9]{2,7})+$/i It i

using (?s) Regex options in Visual Studio Code

I am used to writing regular expressions that support multiple options to specify case sensitivity, white space ignoring, meaning of . etc... In C#, these optio

How to match a string that starts and ends with the same letter?

How do I write a regular expression that consists of the characters {x,y} but must start and end with the same letter? For example: xyyyxyx yxyxyxy

Extract file that contains specific string on filename from ZIP using Python zipfile

I have a ZIP file and I need to extract all the files (normally one) that contain the string "test" in the filename. They are all xlsx files. I am using Python

c++11/regex - search for exact string, escape [duplicate]

Say you have a string which is provided by the user. It can contain any kind of character. Examples are: std::string s1{"hello world"); std::

Javascript regex for matching/extracting file extension

The following regex var patt1=/[0-9a-z]+$/i; extracts the file extension of strings such as filename-jpg filename#gif filename.png How to modify this re