Quantcast
Channel: CodeProject Latest postings for Regular Expressions
Browsing all 224 articles
Browse latest View live

Find Sequence of alphabets in the string

I need to find 5 sequence of alphabets has exists in a given string using regular expression. Sequence which should check in any of the form like ABCDE, BCDEF, DEFGH, EFGHI,......,PQRST,...,VWZYZ. Eg....

View Article


How to skip a particular term in regex find and replace?

Hello. I am an editor at english wikipedia. I am adding template of wikiproject banners on the talkpages of articles which come under the scope of wikiproject. Basically, I am addingCopy Code...

View Article


Finding a specific number in a string.

I can find plenty of examples of how to find a number in a string, but now how to find a number preceded by a specific string. Like... Copy Code [2020-07-24_184102][ACF11B2Y90][CCT]_Cycle0001.csv How...

View Article

9 million Rows in Excel

Hi, i got an 9 million row excel file and i need to join it with another excel file base on numeric values. Issue : I suppose to have only unique numbers in column A, but unfortunately i got some...

View Article

RegEx Split

Hi I have a line in my csv file as belowCopy Code ""|*"I have delimiter |* and an escaped \" quote in me"|*100|*200|*300|*"am a string"|*"" I have to interpret " quote as text-qualifier and |* as...

View Article


String Replacement

Hi, I'd lke to subsitute the string Alfa("Beta") to Alfa(Gamma("Beta")) using regular expressions in Visual Studio using regexp. The first part is simple, the search string will be Alfa\("(.*)"\) But...

View Article

RegEx: Get Values from HTML Attribute Tags

I need to get the values from below following html snippet. So far I came up with this regex which helps me trim it down to the values I needed, but to automate this I need to join 2 regex statements...

View Article

A Regular Expression that will search and replace characters from a string

Hello Community, I'm trying to compile a regular expression that will search for strings that exclude certain characters. For example, the following string value has 6 leading 0's 000000120 The next...

View Article


Capture values using regex

Hi I'm a Regex novice (very much learning as I go!) and I am trying to write a regex expression to capture the minimum and maximum temperature values in the string below. I'm hoping someone may be able...

View Article


Regular Expression to Change Uppercase Text to Lowercase

Can someone assist with a regular expression that will replace and capitalize the first character in a text characters to lowercase For example PETER Before Peter After JohN Before John After paul...

View Article

How to namn this?

[S1.E2] The Series Name - The Episod Name To look like this: The.Series.Name.S01E02.The.Episod.Name. Not matching with tvdb will say, if it did, it had been easy Thanks for helping =)

View Article

Case Conversion Regular Expression in JAVA 8

Hi Community, I have come to the conclusion that it may not to be possible to change the case of a string in JAVA 8 as simply as it is to change the case in say Perl. However, before I move on, I just...

View Article

String Replacement in 'HTML 5 FireFox'

Hello Community, I have created Regex with Regex Magic with HTML 5 Firework, see attached. The Regex [A-Za-z]{3}\d{4} successfully finds a string such as GMK6954 using Character Spaces. Can someone...

View Article


regex pattern in order to get a list of numbers from a string

Copy Code Hi there: Suppose I have a string with “1: a string, 2: other 5 string, 3: something 8; else”, what would be the regex pattern to obtain “1,2,3” as a result Thank you in advance, Rafael

View Article

Regex only want the first match

Hi Would like to know if it's possible to get only the first match for this regex ^ \(SQL\)Max Duration..* ([0-9]+[0-9])( \([0-9][0-9][0-9][0-9]) I was able to isolate the value in second group but I...

View Article


Replace certain characters in part of string?

Hello, I have a question on regex: Is it possible to match for certain characters (and replace them) in only a part of a string? E. g. str="I want to solve this problem" I now want to match all spaces...

View Article

Ignoring repeating values?

Hello - I have the following string: [ CmdAV=show CmdArgAV=policy-map CmdArgAV=system CmdArgAV=type CmdArgAV=network-qos CmdArgAV=<cr> ] Is it possible to use regex to leave only: show policy-map...

View Article


Regex for a Customer number

My Customer number is in the pattern : 88765 ie. 5 digits alone... using regex i have to validate if there are any characters and special characters in the customer number. Incase there are any...

View Article

workaround for negative lookbehind regular expression in Javascript

/\B(?

View Article

Image may be NSFW.
Clik here to view.

Regex to detect href not correctly closed

Sorry, do you suggest me a regex to find in a page not properly closed href tags, like this?HTMLCopy Code<ahref="https://www.sito.it/"target="_blank"rel="noopener"property</a> In practice, the...

View Article
Browsing all 224 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>