What do you want to save?
Add Code snippet
New code examples
-
C# 2021-11-09 05:11:13
c# regex match
const string input = "Lorem ipsum dolor sit %download%#456 amet, consectetur adipiscing %download%#3434 elit. Duis non nunc nec mauris feugiat porttitor. Sed tincidunt blandit dui a viverra%download%#298. Aenean dapibus nisl %download%#893434 id nibh... Add solution -
Shell/Bash 2021-09-25 20:06:04
bash print fields that begin with string
# Basic syntax: awk '{ for(i=1; i<=NF; i++) { if($i ~ /^string/) { print $i }}}' your_file # Where: # - for(i=1; i<=NF; i++) - this loops through the fields in each row of # your_file, starting at field 1 and ending at the number of fields # NF in... Add solution