Category "regex"

How to use non-ascii characters in the regex filter of the declarativeNetRequest API for a Google Chrome extension?

I am creating a Chrome extension but just found out that it's not possible to use non-ascii characters in the regex filter of the declarativeNetRequest API. Whi

How do I match this pattern using preg_match in PHP?

I'm writing a simple quiz engine in PHP and supply the question text in this format question|correct/feedback|wrong/feedback|wrong/feedback There can be as man

regex matching consecutive characters from start and end

Im trying to match a string to that containsthree consecutive characters at the beginning of the line and the same six consecutive characters at the end. for e

Get JSON value using grep, sed, or awk

I have a JSON configuration file I'm trying to extract values from via the following grep command: grep -oP '"private_key": "\K[^\"]*' config.json As you can s

Data validation to Keep column I cell Empty if Condition Met in column J

Trying to add Data validation in column where first value before / >139 OR Last value after / >89 then Data Validation will strict the cell to add anythi

How to specify input locations parameter in dataflow pipeline?

I have a Dataflow template, that I originally created via Dataprep. Now I want to move away from Dataprep and use just Dataflow and schedule jobs using Cloud Sc

How can i check for only one occurence only of each provided symbol?

I have a provided array of symbols, which can be different. For instance, like this - ['@']. One occurrence of each symbol is a mandatory. But in a string there

Regex to match Python docstrings

I would like to parse Python docstrings as follows: Summary of class that is multiple lines. Parameters ---------- param1 : str Param 1 is a param Returns

Using Regular Expression to narrow down dictionary based on Wordle rules

I am trying to do Wordle Solver as my resume project. I want to develop some word suggestions by narrowing down dictionary of words using RegEx. Is it possible

Regex for a extracting a string starting with a particular word and ending with a year

INPUT 1: The string is enclosed CASE NO.: Appeal (civil) 648 of 2007 in between. OUTPUT 1: Appeal (civil) 648 of 2007 INPUT 2: The string is enclosed CASE NO.:

How to remove space from number followed by unit or dimensions?

Here is the input string string1 = 0.9% SODIUM CHLORIDE 8290306544 FLUSH 0.9 % SYRINGE 10 ML string2 = 0.9% SODIUM CHLORIDE 8290-3071-44 FLUSH 0.9 % SYRINGE 10

How can I match this pattern (characters a-z, numbers ) between two brackets?

I have this code , and I would like to match this pattern: All characters a-z , A-Z between two "" . The variables should be between square brackets. How can I

Get text inside brackets along with splitting delimiters in regex java?

I have a multiline string which is delimited by a set of different delimiters, A Z DelimiterB B X DelimiterA (C DelimiterA D) DelimiterB (E DelimiterA F) Delimi

Issue doing greedy search using Python

This is my input text: "you have a choice between 1, 2 or 3 bedrooms" I want to get the number of bedrooms, so one or more numbers before "bedroom" (allowing: '

Regex to find numbers that are not in a phrase

If I have e.g. this string: Beschreibung Menge VK-Preis MwSt% Betrag Schadenbewertunginkl.Restwertermittlung 1 25,00€ 19 25,00€ Rechnungsbetragexcl.Mw

StringRegExp pattern | Get the end of the path

I have a path of picture like $path = "C:\Users\nvquang\Desktop\New folder\AutoIT_ImageSearchUDF\GUI ImageSearch\Close.bmp" I want to get only Close.bmp The f

Way to match *all* newline-type character sequences in a text file

I'm looking for a way to obtain all sequences of newline-like characters found in a string. I'm trying to use preg_match() as follows: preg_match('/^[^\r\n]*(?

javascript regex to match a combination of and/or expression

I want to match a combination of and/or expression and match only sentences in between for example test1 test2 and test2 or test4 test5 I want to get matches t

How to get the domain and string to the first slash

For example like this url = https://example.com/test/myname/myname.jpg result = re.search('(?:https?://)?(?P<host>.*?)(?:[:#?/@]|$)', url) I can get th

How to filter by Regex in LibreOffice?

I've got this string: {"success":true,"lowest_price":"1,49€","volume":"1,132","median_price":"1,49€"} Now I want the value for median_price being dis