Category "regex"

Delete ALL Regex Matched Line

this is my file: remark goes here MASS Pd 0.000 0.000 ATTN, need revision ns 14.010 0.530 same as n BOND Pd-cl

REGEX_String between strings in a list

From this list: ['AUSTRALIA\nBELMONT PARK (WA', '\nR3\n1/5/4/2\n2/3/1/5\nEAGLE FARM (QLD'] I would like to reduce it to this list: ['BELMONT PARK', 'EAGLE FARM

Regex: negative lookbehind not directly before target

I am debugging some JavaScript code and I need to identify lines that contain " = " followed by a comparison operator such as "==", ">", "<", "!=". Howev

How to replace all '\n' character after 'word' with 'comma' character

Trying to replace all the \n character after the word 'key2:' pattern with comma. Input String: key1:value1\nkey2:value2\nvalue22\nvalue222 Expected: key1:valu

Sending logs from fluentd to splunk

I am using log4j , so have different formats of logs. I am able to send most of the logs using the below multiline format from fluentd to splunk, but few of the

finding CDRs in NGS data

I have millions of sequences in fasta format and want to extract CDRs (CDR1, CDR2 and CDR3).I chose only one sequence as an example and tried to extract CDR1 bu

Error while compiling regex function, why am I getting this issue?

My RAKU Code: sub comments { if ($DEBUG) { say "<filtering comments>\n"; } my @filteredtitles = (); # This loops through each track for @

jMeter Regular Expression Extractor with use of variable in regexp

I use jMeter 5.5-Snapshot 3a74a92. I need to use result of previous Regular Expression Extractor stored in variable in next Regular Expression Extractor when bo

jMeter Regular Expression Extractor with use of variable in regexp

I use jMeter 5.5-Snapshot 3a74a92. I need to use result of previous Regular Expression Extractor stored in variable in next Regular Expression Extractor when bo

Capture text after multiple optional strings into named group with Regex

I am trying to extract multiple strings using different patterns from one long string. Here is an example of the input string: [Update 2]Number of students: 5[

I want a regex support for characters that uses IP Address with Subnet

I have a regex ^[a-zA-Z0-9.*?]+$ that supports IP addresses like 31.202.216.280 how can I modify the given regex in a way where I could support subnets with an

I want a regex support for characters that uses IP Address with Subnet

I have a regex ^[a-zA-Z0-9.*?]+$ that supports IP addresses like 31.202.216.280 how can I modify the given regex in a way where I could support subnets with an

Python how to add create blocks from multiline text

I have the textblock below and I am trying to separate into 3 blocks with regex. When you see the name field it would start a new block. How can I return all

Regexextract multiple <a> links from HTML

I have an extract from a description off a webpage which contains multiple links to other pages the whole string is in a single cell. The string below is along

Regex to match multiple cases

I have the following examples that must match with my regex 1,[] 1,[0,0,0,[]] 1,[0,0,0,0,0,[]] 1,1 1 I came up with a simple way of matching the middle ones wi

How do I deal with special characters like \^$.?*|+()[{ in my regex?

I want to match a regular expression special character, \^$.?*|+()[{. I tried: x <- "a[b" grepl("[", x) ## Error: invalid regular expression '[', reason 'M

Automata - Regular Expression (Union Case)

Automata 1) Recognizes strings with at least 2 a Regular Expression = b*ab*a(a+b)* Automata 2) Recognizes strings with at least 2 b Regular Expression = a*ba*b(

If cell contains a certain text, return a specific drop down list item (Google Sheets)

I've created a quote form, and in one cell (C6:H9) I enter the address with the city name. In another cell (C31:F31), I have a drop down list with different cit

regular expression to match exactly 5 digits

testing= testing.match(/(\d{5})/g); I'm reading a full html into variable. From the variable, want to grab out all numbers with the pattern of exactly 5 digit

Improving the performance of an PCRE Regex Pattern

I have the below regex here which is written to support the PRCE/PRCE2 format. However, this throws the following error “Evaluation takes too long. Please