Category "regex"

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

How to match a word with no special character at front and back

I am trying to match a word which has no special characters attached at both front and back. The regex I have written is /\btest\b/gi

RegExp Match all text parts except given words

I have a text and I need to match all text parts except given words with regexp For example if text is ' Something went wrong and I could not do any

Regex : match ass \fn font tag

I want to match all \fn tags with the following font name, so for : \fnArial\i1 \fnArial \b1\fnArial) \t(\fnJester (BIG)) \t(\fnJester (BIG))\i1 \t(\fnJest

Getting overlapping regex matches in C#

I have the regex 1(0*)1 and the test string 1000010001 I want to have 2 matches, but I find that only 1 gets found : var regex = new Regex("1(0*)1"); var valu