Also known as regular expression or regexp, a description of a set of strings, often used for searching and validating strings.

learn more… | top users | synonyms (1)

0
votes
0answers
3 views

Match multi-line pattern in Charles proxy rewrite rule

In Charles proxy, I'm trying to use a rewrite rule to match a pattern that spans three lines in a response body, using \s* in the Match value (with 'Regex' checked) to match new lines. It appears ...
-1
votes
0answers
15 views

Remove string thats contains only digits

Looking for a way to remove strings that contains only digits. so: 2983398 text1 2323323221 text2 9554 will be: text1 text2
2
votes
1answer
11 views

unknown exception error when I run Notepad++ v6.8.2 when starting Regex Helper

I get an unknown exception error in Notepad++ v6.8.2 when starting Regex Helper? Any suggestions? OS: Win7 64-bit Installed with installer package
0
votes
2answers
32 views

awk and regex with {}

I want to print whole record if it contain word and some character, which are optional. Script: /mount[ein]{0,2}/{ print $0} Unfortunately it doesn't work. Without "{" and "}" it work. I tried with ...
0
votes
1answer
9 views

Remove all lines after /

I have 2 lists one with this format: http://www.example.com/archives/573 http://www.example.com/1812.html http://example.com/hello-world/ but i want it in this format www.example.com ...
0
votes
0answers
10 views

mutt regex for limit filters

Does mutt support multi-line regex for its search filters? I cannot find an yes or no in the documentation. I'm assuming its not supported, but cannot tell if maybe I am improperly escaping my regex. ...
1
vote
1answer
14 views

Vim: Columising a long line of arrays

In writing tests I often want to compare a generated value to something I've previously generated, but dumping the output from my console into vim leads to a very long ugly line. Is there any way to ...
1
vote
1answer
18 views

How to remove pattern containing blank space and special characters in sed

How to remove following words from a text file: DEFAULT ('') DEFAULT ((0)) DEFAULT (((1)/(1))/(1900)) DEFAULT (getdate()) I am not able to delete above four pattens using sed.
0
votes
1answer
24 views

VLOOKUP returning N/A because references contain “.” and “ ” in one table, not in other

OK I am trying to vlookup a table but the problem is the references on one table are slightly different to the references on the other table. I can get the VLOOKUP function working, but it is ...
1
vote
1answer
22 views

Notepad++ find and replace string or text with new string or text

I have some code several hundred lines long and I want to find each "String" and replace it with a different "String". Example below... $BR360Button.Add_Click({BR360Button}) ...
0
votes
1answer
20 views

How to remove lines not ending in a number?

How do I null or better yet, remove, the lines in a file that do not end in a number [0-9]? I'm using gvim blahblahblah delete this line foobarbizzbuzz keep this line because it ends in 9999113 ...
-1
votes
1answer
15 views

replace/rename directory name using regex

i have multiple folder with this pattern "720p.MP4-ABC[abcde]" trying to replace or rename "720p.MP4-CAB[aedcb]" to "."
1
vote
0answers
22 views

MS Word, can we write a multilingual regular expression?

I want to find all the occurrences of the from x.y and change it to x,y where x and y are numbers: I was using this: ([0-9]).([0-9) and doing the replace using \1,\2 but here is the catch , if the ...
0
votes
0answers
9 views

HTTPD 2.2.15 AliasMatch

I have built a regex for an AliasMatch that tests out fine against the PCRE tester at regex101.com. The task I am trying to accomplish it to allow any alias matching a pattern to refer to a common ...
0
votes
1answer
9 views

Quotes in sed when used in bash script

I am generating sed expression in Bash script, and I am having a following problem. I want to add a space in front of each appearance of abc. This commands works as expected echo abc | sed -e ...
2
votes
2answers
243 views

Replace every nth instance of a character with a new line in Notepad++

I have a pipe delimited string of NAME|VALUE pairs looking something like this.. Name1|Value1|Name2|Value2|Name3|Value3 What I want to do is to replace every second instance of | with a new line so ...
1
vote
0answers
33 views

Search & replace speed in Notepad++ / indexing

I am using Notepad++ to search and replace in around 60, 000 files, one folder. It only seems to be processing around 2 files per second, is there any way to speed this up? I have an i7 processor ...
0
votes
1answer
24 views

Excel search character range

Is it possible to use character classes ([A-C] or [abc]) instead of wildcards in the SEARCH function of excel? I want to do something like the following: =SEARCH("[AB]"; A1) This should result in ...
2
votes
1answer
52 views

Notepad++ regex find/replace adjacent ids

I have a csv file that looks like this: ID, term, functional category GO:0008166,viral replication,P, GO:0008167,sigma virus replication,P, GO:0008168,GO:0004480,methyltransferase activity,F, ...
0
votes
0answers
6 views

How expand NSDataDetector's NSTextCheckingType and corresponding pattern?

I want detect some condition more than NSDataDetector's internal types, so need know whether IOS system already provide a interface for expand NSTextCheckingResult. apple document just say: the ...
0
votes
1answer
26 views

regex to match everything but substrings beginning with hashkey

I am building a regex to filter out any substrings beginning with '#' or '@'. I am trying to filter tweets from those. Currently it matches everything no matter if the string contains words beginning ...
2
votes
2answers
27 views

Delete everything in second column not in parentheses

I have a file that looks like this: gene ID protein Solyc06g062540 (Z) PYROPHOSPHATASE 3 (PTHR20889:SF0) Solyc10g075050 ALBUMIN SUPERFAMILY (PTHR33076:SF11) Solyc07g061760 ...
1
vote
1answer
14 views

Abobe Brackets how to find in a folder

In the official web: https://github.com/adobe/brackets/wiki/How-to-Use-Brackets Under the title: 'Instant Find in Files' they say: "You could even make the search in a specific folder" Can anyone ...
2
votes
0answers
47 views

Regex expression cuts zero in the end

I have a script with powershell regex in it, and after I upgraded from Windows 7 to 10 it working different. Regex: if ($srv -match '^[0-9]{1,3}\.[0-9]{1,3}$'){$srv = "192.168.$srv"} Expected: ...
0
votes
0answers
12 views

Regular expression for find in files in Textpad

I want to use regular expression for find in files in TextPad. I need to find URLs starting with "Areas/" and ending with "/pdf"(something like this Areas/../../...pdf). Please suggest me the correct ...
1
vote
2answers
47 views

Notepad++ Regular Expression Assistance

I am currently trying to find \000\000\001\031704_news_release.pdf Which I have successfully done with 000\\000\\\d\d\d\\ I am pretty sure I am doing something wrong here though because I want ...
0
votes
0answers
10 views

FatRat - How to add FTP credentials?

I am wondering, how to add FTP credentials to FatRat? You have to insert an regular expression, but how exactly does it have to look like? Anyone has an example of an regular expression? For example ...
1
vote
1answer
30 views

Remove everything before the colon character (regex) in ms word

I need a regex to remove everything before the : character. An example would be: UNIDENTIFIED MALE #1: Thank you. Roll camera. Do you have numbers moving out at the sound? UNIDENTIFIED MALE ...
1
vote
1answer
21 views

Regex Expression in Notepad ++ (Replacing value)

I'm trying to replace a statement that has this pattern: readonly="if(xxxx.x_DATE lt yyyy.y_yyyyy,True,False)" where "DATE" in the statement are dynamic (vary in the file, i.e. 0101, 0102, 0103 etc) ...
0
votes
1answer
12 views

How to exclude certain paths in Hudson using regular expression

We use Hudson and like to exclude certain paths from the code checkout source using regular expression. Paths to exclude: src/abc/def/efg/z.h src/abc/def/m.h src/abc/def/efg/kvt/y.h We tried but ...
0
votes
2answers
43 views

Notepad++ comment all lines containing string or all bookmarked lines

I wanted to comment out some java code using Notepad++ e.g. StringBuffer sbTest = new StringBuffer(); sbTest.append("aaa"); sbTest.append("bbb"); sbTest.append("ccc"); sbTest.append("aaa"); ...
1
vote
2answers
45 views

Regular expression to match cell boundaries

Is there a regular expression solution in Microsoft Word to match cell boundaries? Recently I had a table with several cells starting with a space and I had to remove them, unfortunately ^ to match ...
0
votes
1answer
26 views

how to delete the line after a special number?

How I can delete the numbers and characters more than a special number by regex in notepad++? This is a part of text: 1230 مهندسی برق-تبریز 126 مهندسی کامپیوتر-شریف 234 مهندسی کامپیوتر-تهران 786 ...
0
votes
0answers
17 views

Combine two and more regex, not returning variables from 2nd, 3rd regex

Still having problems with this. Trying to replace all text in a file so it just returns certain variables. It's a large file in Notepad++ ^.+?2014(.+?)Heading1Name(.+?)">(.+?)<(.+?>.*$ ...
0
votes
0answers
30 views

Delete lines containing string using Notepad++ [duplicate]

I would like to delete all lines in multiple HTML files containing the following strings: api.addthis.com <!-- span class="invisible">Bookmark Thanks for the help!
0
votes
1answer
44 views

Delete all code inside a tag in multiple HTML files with Notepad++

I need to delete all code contained within <li class="share"> ... </li> including the <li> tags themselves. There are multiple other <li> tags inside the li class="share" ...
0
votes
2answers
20 views

Find files to find multiple instances of the same code with Notepad++

I might have inserted <meta charset="UTF-8"> twice in some HTML files, and there are too many of them to check manually. Is there a regular expression I can use with Notepad++ to search for ...
0
votes
1answer
60 views

Regex for “Delete everything going forward but only up until start of [Expression]” [duplicate]

I am in Notepad++. I have the following data embedded in a large html file. I want to get the variables before the </ix:nonNumeric> at the end of the lines, onto their own lines by themselves so ...
0
votes
1answer
21 views

expr bash command returning 0 in substring evaluation

What I'm trying to do is read a line from a file, store it in a variable $line and extract all instances of (that is, angle brackets with only uppercase letters between them). What I'm trying is: ...
0
votes
0answers
21 views

Sublime Text: Why regex in syntax highlighting does not work?

In sublime text 3 a default syntax highlighting rule paints a sql select just fine if its in the same line, but not if its in the next line: vs After reading this question I opened the PHP package ...
0
votes
1answer
74 views

Notepad++ Deleting everything apart from 40 variables, putting them on their own line, combining regex

I am in Notepad++. I have the following data embedded in a large html file. I want to get the variables before the </ix:nonNumeric> at the end of the lines, onto their own lines by themselves so ...
0
votes
1answer
39 views

Notepad++ delete everything in entire large file before and after a variable

I have large text files with all kinds of characters, symbols and numbers. Can I use notepad++ to batch work through a directory of these and delete everything before and after a variable? I need to ...
2
votes
1answer
53 views

Notepad++ - Delete Everything Other Than The Specified Strings

I have the following strings that I want to keep and delete the rests: uicomp-type="example-string" uicomp-type='string-example' I use the following regex to find those strings: ...
0
votes
1answer
36 views

Find all instances of a string where the line doesn't begin with a comment character?

I'm doing a Find in Files for a few strings; "V1.10", "V1.01A", "V1.2" I'd like to find all instances of those values (fine if I have to run 3 different searches) except for lines that start with ' ...
2
votes
1answer
28 views

Match first next word matching a given pattern using sed

I'm having trouble getting the following behaviour: input='somestring... --key1 val1 --key2 val2 --key3 val3 somestring...' output='val1' I tried using: echo $input | sed -nE 's/.*--key1 (.*) ...
0
votes
2answers
53 views

Regex remove line contain character

I have a list of values being returned to me and they all end with a | like below: testdata1-old | testdata | test2-old| I want to delete all the lines containing -old. What regex can I use?
0
votes
1answer
43 views

Replace highlighting characters with something else

I wish to replace color codes with something else. For example, running cal command i want to get some html tags instead of color codes: July 2015 Su Mo Tu We Th Fr Sa 1 2 ...
0
votes
2answers
31 views

Basic regex match up to first period [duplicate]

I am trying to match a search term up to a first period using grep So for example, grep-ing through foobar searchterm. hello world. should print foobar search term blah. I save the above to a ...
1
vote
2answers
43 views

Matching a sentence with grep

I'm trying to grep for the full sentence containing a search term. I've tried grep (^.|\.\s).*searchterm.*(\.\s|\n) but it's not working and I'm not sure why. To clarify: I want stdout to print ...
2
votes
1answer
33 views

Notepad++ Regex find line pattern but only replace one line

I am new to regex. I want to modify lines in a text file based on a particular pattern. I was able to write an expression to find the pattern but in the group of line that it returns I want to only ...