Regex (or regexp) is known as regular expression matching of patterns, strings or characters in, for example, a large text file. Questions should be tagged as such whatever the programming language involved and the tag can also apply to command-line or graphical programs that have regex plugins or ...

learn more… | top users | synonyms

0
votes
3answers
78 views

Grep for a pattern in line

How can i grep for a specific pattern of numbers like 1000010000000 in a whole file - the line has to have thes numbers at the beginning not somewhere else...
0
votes
1answer
9 views

locate: ignore .git .svn and hidden folders in general when using willcard

I try to do locate -i -l 256 -r '*testhack*' and I get all hidden files as results polluting my limited result list, things like /home/kwaadpepper/testhack/TwitterReport/.git/objects/9a. I think that ...
0
votes
1answer
123 views

mksquashfs not excluding file

I am having issues excluding a specific file from a squashfs. I want to be able to exclude all file types ending with *.db but have had no luck. Whenever I run the mksquashfs command with the ...
-1
votes
1answer
179 views

How to install i386 (32bit) boost-regex library to amd64 (64bit) system, 15.04

I tried to use this command: sudo apt-get install libboost-regex1.55-dev:i386 And i have some errors: Reading package lists... Done Building dependency tree Reading state information... Done Some ...
0
votes
0answers
45 views

Best RegEx tools

I am new in Ubuntu, and am looking for an offline RegularExpression tool. I have been using RegEx101 and now it gives an error by saying Catastrophic backtracking has been detected and the ...
0
votes
0answers
99 views

Log Sifting: Rewrite Logs for Human-Readable Verbage

My goal is simply to build a reworded log containing the lines where an external IP address interacted with an apache2 server. So far, I have come up with the following: #!/bin/bash # apache2 log ...
0
votes
0answers
22 views

USB 3 External Hard drive SMART fails

I am trying to use SMART to check an external hard drive, however when i try to use SMART (from Disk) the option is greyed out and i cannot use it, whether the HDD it is mounted or not. I have ...
0
votes
0answers
84 views

C++ and regex using gcc 4.9.1

Good day, I'm trying to use regular expressions within my C++ program. The regular expression I use is simple and works as intended when I try it in an online debugger. The code: /* _token = ...
0
votes
0answers
25 views

LFTP downloads some folders but deletes others after downloading files

I'm using the mirror command combined with regex to filter out rar files. LFTP downloads most folders but inexplicably deletes a few folder while it's still downloading a file (usually large) and then ...