Click here to Skip to main content
15,887,027 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
GeneralRe: Regular expression for City name Pin
jschell9-Feb-24 12:02
jschell9-Feb-24 12:02 
QuestionDoes anyone have experience with creating the regex rule for a fail2ban filter? Pin
Member 161948782-Feb-24 4:44
Member 161948782-Feb-24 4:44 
AnswerRe: Does anyone have experience with creating the regex rule for a fail2ban filter? Pin
jschell7-Feb-24 5:38
jschell7-Feb-24 5:38 
QuestionHelp for a regexp Pin
Member 1616830421-Dec-23 23:43
Member 1616830421-Dec-23 23:43 
AnswerRe: Help for a regexp Pin
Member 1616830422-Dec-23 2:53
Member 1616830422-Dec-23 2:53 
QuestionRegex: more than one identical character next to each other? Pin
Member 1615168129-Nov-23 7:07
Member 1615168129-Nov-23 7:07 
AnswerRe: Regex: more than one identical character next to each other? Pin
Richard Deeming29-Nov-23 22:28
mveRichard Deeming29-Nov-23 22:28 
QuestionHelp me regexp gurus please problem is matching files and copy Pin
Gin Mador11-Nov-23 15:27
Gin Mador11-Nov-23 15:27 
original folder "datasets to optimize" contains 1000s files like this

variable 2-3 dots and 1 dot with numbers 1.87.184 and 0.35643634, and sometimes they contain (#num#) at the end of number

how to copy matching files from "datasets to optimize" to "result"?​


~/Documents/optimizer/datasets to optimize #

-rwxr-xr-x 1 root root 170K Nov 11 14:11 'MethodStats 1.87.184_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 193K Nov 11 14:11 'MethodStats 0.206117(4)_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 199K Nov 11 14:11 'MethodStats 9.58.155_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 187K Nov 11 14:11 'MethodStats 9.61.114_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 181K Nov 11 14:11 'MethodStats 9.6.185_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 212K Nov 11 14:11 'MethodStats 9.64.191_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 171K Nov 11 14:11 'MethodStats 9.66.150_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 231K Nov 11 14:11 'MethodStats 9.72.194_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 241K Nov 11 14:11 'MethodStats 9.73.138_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 176K Nov 11 14:11 'MethodStats 9.83.123_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 179K Nov 11 14:11 'MethodStats 9.83.125_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 181K Nov 11 14:11 'MethodStats 9.83.195_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 176K Nov 11 14:11 'MethodStats 9.85.133_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 218K Nov 11 14:11 'MethodStats 9.85.167_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 195K Nov 11 14:11 'MethodStats 9.86.177_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 178K Nov 11 14:11 'MethodStats 23.92.166(1)_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 210K Nov 11 14:11 'MethodStats 9.89.189_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 218K Nov 11 14:11 'MethodStats 0.2048140_vardata_L6_probin.txt'


and output folder "result" has the same but before that is added FW Retest

/root/Documents/optimizer/result

-rwxr-xr-x 1 root root 3.4M Nov 11 14:14 'FW Retest - MethodStats 1.87.184_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 2.7M Nov 11 14:15 'FW Retest - MethodStats 0.2048140_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 2.5M Nov 11 14:15 'FW Retest - MethodStats 0.206117(4)_vardata_L6_probin.txt'

-rwxr-xr-x 1 root root 2.4M Nov 11 14:15 'FW Retest - MethodStats 23.92.166(1)_vardata_L6_probin.txt'


how to copy matching files from "datasets to optimize" to "result"?
AnswerRe: Help me regexp gurus please problem is matching files and copy Pin
jschell30-Nov-23 6:17
jschell30-Nov-23 6:17 
Questionpattern replace with specific exception Pin
Member 1612263424-Oct-23 1:06
Member 1612263424-Oct-23 1:06 
AnswerRe: pattern replace with specific exception Pin
Member 1612263426-Oct-23 1:02
Member 1612263426-Oct-23 1:02 
AnswerRe: pattern replace with specific exception Pin
Justice Marc20-Nov-23 5:10
Justice Marc20-Nov-23 5:10 
QuestionReplacement of initial words Pin
Luca Smith12-Oct-23 0:47
Luca Smith12-Oct-23 0:47 
AnswerRe: Replacement of initial words Pin
OriginalGriff12-Oct-23 0:50
mveOriginalGriff12-Oct-23 0:50 
GeneralRe: Replacement of initial words Pin
Luca Smith12-Oct-23 0:54
Luca Smith12-Oct-23 0:54 
GeneralRe: Replacement of initial words Pin
OriginalGriff12-Oct-23 1:18
mveOriginalGriff12-Oct-23 1:18 
GeneralRe: Replacement of initial words Pin
Luca Smith12-Oct-23 1:40
Luca Smith12-Oct-23 1:40 
GeneralRe: Replacement of initial words Pin
Dave Kreskowiak12-Oct-23 3:02
mveDave Kreskowiak12-Oct-23 3:02 
AnswerRe: Replacement of initial words Pin
Richard Deeming12-Oct-23 1:45
mveRichard Deeming12-Oct-23 1:45 
GeneralRe: Replacement of initial words Pin
Luca Smith12-Oct-23 1:59
Luca Smith12-Oct-23 1:59 
GeneralRe: Replacement of initial words Pin
Dave Kreskowiak12-Oct-23 3:01
mveDave Kreskowiak12-Oct-23 3:01 
GeneralRe: Replacement of initial words Pin
Terry R 202313-Oct-23 9:22
Terry R 202313-Oct-23 9:22 
GeneralRe: Replacement of initial words Pin
OriginalGriff12-Oct-23 2:38
mveOriginalGriff12-Oct-23 2:38 
AnswerRe: Replacement of initial words Pin
jschell12-Oct-23 5:21
jschell12-Oct-23 5:21 
QuestionRegular Expression for a repeating pattern? Pin
Les Stockton6-Oct-23 7:50
Les Stockton6-Oct-23 7:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.