Rename file with html tag values before/after uploading - rename

I need to rename a file with selected value of dropdown tag separated with (-) sign.
I try code bellow but become stack.
any help?
[change file name from (vm-path) to: (Bursa-Avcilar-05-03-2022)]

Related

Add hidden data to text file

Is there anyway to add a hidden data to the text file.
For example, in the below text -
Add hidden text to file.
I want the text file to only display -
Add text to file.
But I will still have the hidden word in the document, which I can look at as and when needed.
Got the answer to my question
http://techmeasy.blogspot.com/2013/05/hide-data-text-file-without-software.html

Save or Export Excel as csv with commas in cell values

My Excel has a block with a comma , eg. abcd,xyz.
When I convert this Excel to CSV, this text gets converted as 2 columns.
Can anyone advise how I can prevent this?
Excel by default will use a comma as the delimiter, but you can change that:
Go to Control Panel > "Region and Language" (Or just "Region" in Windows 10), and then click the "Additional settings" button on the bottom.
Now look very closely at the List separator item, which normally
has a comma in the field, and for the purposes of this illustration,
change it to a Pipe | character.
Once you hit Apply, and then save your Excel file as a CSV file, you’ll notice that your file now has pipe | characters as the delimiter.
PS: You'll probably want to change the List separator back to a comma just in case some other application needs it.

Sublime paste code in specific file across multiple directories

Let say I have 3 directories containing same file name like style.css.
Is there a copy/paste method in Sublime Text editor to paste code once at the end of all css files (style.css) ?
dir1
style.css
dir2
style.css
dic3
sytle.css
You can use the standard ”Find in files…” operation and regular expressions to do this.
Open the dialog (Cmd+Shift+F on Mac OS X, Ctrl+Shift+F elsewhere)
Activate the Regular expression button on the left (by default it's labeled .*)
Put \z in the Find field, that will search the end of string
Optionally, specify file names in the Where field to limit the operation, e.g. style.css
Put appended_text in the Replace field (or \nappended_text to append the text into the next line)
Press the Replace button

Search and Replace in Sublime 3

I've been googling like a madman, but for the life of me I can't figure out how to do these 2 things in Sublime Text 3:
Replace all occurrences of a string in the file tree, immediately.
Interactively replace or skip occurrences of a string in the file tree.
All I can manage to do is list and navigate the found matches. After that, I have to look at each file, manually alter the code and save.
In single file
Replace all occurrences of a string in the file tree, immediately.
Hit Ctrl+H, the prompt will open in the bottom of the window, the text of the button are self explanatory
Interactively replace or skip occurrences of a string in the file tree.
Hit Ctrl+H, the prompt will open in the bottom of the window, if you want to replace only this occurrence then click on Replace, if not then click Find, then will select only next occurrence of the search string and then click Replace. This way you can customize search and replace.
In entire directory or folder
Replace all occurrences of a string in the file tree, immediately.
Hit Ctrl+Shift+F, the prompt will open in the bottom of the window. There is a Replace button in the bottom right.
Interactively replace or skip occurrences of a string in the file tree.
Hit Ctrl+Shift+F, the prompt will open in the bottom of the window, Hit Find, then manually double click on the text (that you want to replace) shown in result (tab title Find Results) , that file will get open and replace there. In this way you can customize your custom find and replace in entire directory.

Find and replace help, to remove certain things from text

I have file which contain 18k lines of text which consists of links and rondom ID codes and looks like this:
"
http://arduino.cc/en/Main/ArduinoBoardNano
SC09661
http://arduino.cc/en/Main/ArduinoBoardUno
http://www.farnell.com/datasheets/1639172.pdf
SC09670
http://arduino.cc/en/Main/ArduinoBoardUno
SC09665
http://arduino.cc/en/Main/ArduinoEthernetShield
SC09662
http://arduino.cc/en/Main/ArduinoXbeeShield
CS23020
http://bcove.me/zypzpy2q
SC09147
http://cache.national.com/ds/LM/LM134.pdf
SC08546
http://cache.national.com/ds/LM/LM2574.pdf
SC08540
http://cache.national.com/ds/LM/LM2576.pdf
"
I need to remove from this text all those ID codes (SC08540,SC09662,...) and links which not ends with .pdf, I know its posible with Notepad++ and other programs, with Replace funkction, but I dont know how exacly should I do this. Maybe I could get help with this?
I have not found a way to do this in one go with Notepad++ but this should work:
Open the replace box (Search --> Replace...) and select Regular expression
Search for ^.*[^\.][^p][^d][^f]$
Make sure Replace with is empty
Replace All
Now you have a file with empty lines and the links you want. There are at least two ways to get rid of the empty lines:
Method 1: TextFX plugin
Select all text
TextFX --> TextFX Edit --> Delete blank lines
Method 2: Replace
Make sure the cursor is at the beginning of the document
Open the replace box (Search --> Replace...) and select Extended
Search for \n\r
Make sure Replace with is empty
Replace All

Resources