Skip to content
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Programming Tutorial

Start Learning to Code

  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Breaking News

Nextjs: running code after complete fetch

why does 400 status code result always entercatch block execution with axios?

Saving the state of the button onClick

TypeScript: Specify that value must be in Array using spread operator

Show separate number with comma in django tempalte

Why does my website keep showing old index.html, style.css, app.js…?

Using Python Flask to change the colour of an icon when it detects a words like scam, pending and verified

x clear icon appears only when the input has value – react

Login button redirects to two pages. For first time loginers, it redirects to agreement page, and for rest, it redirects straight to home?

WebComponent setter not triggered if defer is used

Tag: regex

Linux

How to replace a hash pattern inside file and directory names (Linux)

admin March 22, 2021

I’ve just backed up the notes I have in Notion, and they use hashcodes in the notes names to make them unique apparently. For example, this is might be a note-folder with some notes: Archive …

linuxpattern-matchingregexshell
Linux

Regex, select the line that starts with my condition, but take only the characters after space

admin March 7, 2021

I have a file that has content similiar below: ptrn: 435324kjlkj34523453 Note1: rtewqtiojdfgkasdktewitogaidfks Note2: t4rwe3tewrkterqwotkjrekqtrtlltre I am trying to get characters after space at the …

bashlinuxregexscript
Arrays

Split the given string into arrays

admin March 7, 2021

Suppose the given string is: [[1]] is for cars, as [[2]] is for bikes I want to split the string into an array of string using regex or any other way, when [[any number]] (for example: [[1]], [[2]]) …

arraysjavascriptregex
Linux

Issue using RegEx with Linux find

admin February 21, 2021

I’m writing a script to find and list files on my video drive that aren’t already .mkv format, as well as listing any multi-episode files so that I can eventually convert and split these files …

linuxregex
Linux

Hard regex with sed

admin August 20, 2020

In a script.sh file, I have the following line: ExecStart=ssh -nN -R 46:192.168.0.1:56 192.168.0.2 I try to replace with sed the second port (56 here) knowing that its value can vary between 1 and …

bashlinuxregexsed
Linux

extract specific column from file?

admin July 31, 2020

I’ve one file having records like below AAA***000***LLL BBB***111***PPP Want only second column values in output file. OutputFile 000 111 Is there any way I could do it using linux command ?

linuxregex
Linux

Delete specific whitespace backward with sed

admin June 19, 2020

Im trying to delete the last space in my string. The input is: “hi guys how you doing” What i currently doing: $ echo “hi guys how you doing” | sed ‘s/ +//1’ Current output: “higuys how you …

linuxregexsedwhitespace
Linux

And condition usage on grep command

admin June 7, 2020

I have two regular expression, and trying to bind it into And condition what I got -grep -E “/[1-9]{4,}/” file -grep -E ‘([0-9])(.*1){3}’ file I tried to take a regular expression from each …

greplinuxregex
Linux

How to extract a string between two static key? [closed]

admin May 5, 2020

In a string as following: alias LXX “|lp -dYYYYYYY -o nb -o raw -s 2>/dev/null”, lp -d[YYYYYY] -o can happen in the part of the string. [LXX] and [YYYYYY] are the parts that need to be extracted …

linuxregex
Linux

Linux regex error: “unmatched slash and curly braces”

admin May 5, 2020

I have some strings, and among them are: 103120!WIFF SOFTBALL BAT I !25 !20 !01-JUN-90 103121!WIFF SOFTBALL BAT II !30 !24 !01-JUN-90 I need to write a regex for grep which displays strings with ‘…

linuxregex

Posts navigation

1 2 … 17 Next
Privacy Policy