A string is a sequence of zero or more characters. It is commonly used to represent text or a sequence of bytes. Use this tag along with the appropriate programming language being used.

learn more… | top users | synonyms

1
vote
1answer
9 views

Removing and replacing the middle part of a string in bash

I've a few strings: Central and Western</td><td><a href="javascript:pop1('major-housing-estate/30006.html');" title="Kwun Lung Lau">Kwun Lung Lau Central and Western</td><...
0
votes
0answers
5 views

Search pdf for character or string in specific font or style

Is there a way, including a choice of software, to search a pdf file for a specific character or string in a specific font or font style. An example of what I would like to do is find ‘α’ in “αλφαβητο”...
0
votes
0answers
36 views

MS Word Macro to change string to Numbers in long documents?

I am as beginner as it gets with VBA and macro. I am looking to record a macro for MS Word documents that converts string to number. For example the document will have like (one thousand and four) or (...
2
votes
3answers
38 views

How do I search for substrings in Bash?

I want to find out and display the total amount of TTT substrings found in the first 2,000 lines in the file. I had been using grep until I tested it, and realized it does not identify substrings.
1
vote
2answers
101 views

How to split a string with quotes (like command arguments) in bash?

I have a string like this: "aString that may haveSpaces IN IT" bar foo "bamboo" "bam boo" I want to be able to split it like this: aString that may haveSpaces IN IT bar foo bamboo bam boo ...
1
vote
3answers
57 views

Find first string in text string that is numbers only. Formulas only

Is it possible to find the first string within a string that contains only numbers/digits? I have a few thousand addresses to process and some of them have Apartment numbers. I need to find the ...
0
votes
1answer
56 views

Powershell redirect to variable value containing colon

Is there a way to use a variable whose value contains the colon character as a filename string in a command-line redirect? Powershell always treats the colon as a drive separator, regardless of escape ...
1
vote
1answer
42 views

Concatenate strings

I would like to concatenate two columns of strings into one string in a separate column as follows. A B C CIK: 007924 CIK:007924 CIK: 009732 CIK:009732 but what ...
0
votes
1answer
33 views

How to get the difference between 2 cells

I have an Excel file like below. The value in column C should be the difference between A and B (A is always longer, B is always A substring). If both values in A and B are same, C will be empty. ...
0
votes
0answers
23 views

How to extract Shift-JIS strings from binary in Windows 8?

How can I extract Shift-JIS strings from a binary file in Windows 8? I'm looking for actual words in a binary file. So not just meaningless combinations of characters. Other Japanese character ...
3
votes
2answers
66 views

How can I how extract/parse variable info from the END of a string in Excel?

Example1: 01/28/14 Interest Earned 0.10 Example2: 12/27/13 CHECKCARD 1226 LIONHEART BOOKSTORE SEATTLE WA -25.13 In the two examples provided, my goal is to separate out the information ...
0
votes
1answer
82 views

How to write “!” symbol between double quotes in bash? [duplicate]

I can't figure out how to write ! symbol in bash scripts when putting it in double quotes strings. For example: var="hello! my name is $name! bye!" Something crazy happens if I type the following ...
0
votes
1answer
140 views

How do I remove the (Default) REG_SZ?

How do I remove the (Default) REG_SZ from a key and replace it with a REG_EXPAND_SZ value with the same name? The REG_SZ type doesn't suit my purposes, but the command expects the 1st (or only value ...
1
vote
1answer
162 views

R: subset lines of a dataframe containing a string in another file

I would like to subset the lines of data frame 1 (df1) that contain a string from a column in data frame 2 (df2). The problem is that file1 will have multiple strings in the same column. I have tried ...
0
votes
0answers
15 views

Any number of arguments when looping through array of strings?

I'm currently working on making a basic linux script such that it takes any number of arguments and calls a separate script to print the third character of each argument on separate lines. I made ...
0
votes
0answers
15 views

Char case variations tool

I am looking for a tool that will create a dictionary with every possible variation of upper and lower cases chars of a phrase. Example: cat Cat CAt CAT cAT caT cAt
0
votes
3answers
455 views

Split folder paths in Excel to return the final folder

I have a single column in Excel which has a file and folder path. e.g. C:\1_Folder\2_Folder\3_Folder\my_file.txt I would like to extract the name of the final folder and place this in a new column. ...
0
votes
1answer
3k views

awk - awk concatenate string variable

I would like to awk concatenate string variable in awk. How can I do that? I tried: BEGIN{ t="." r=";" w=t+r print w} But I does't work. Output: 0 Or I want to add variable and result of ...
0
votes
2answers
45 views

Click Every Word that ends with “.log.gz” in Any Language Compatible with Google Chrome

I have looked up the answer to this already and cannot do this with the programming languages I know, so I'd like the code for this and an explanation as to how it works so I can use this in future ...
2
votes
2answers
140 views

String replacement in Windows batch

I am trying to understand how string replacement in Windows batches actually works and having trouble. @echo off set var=wild set varnew=%var:l=n% echo var is: %var% echo varnew is: %varnew% does ...
0
votes
1answer
171 views

Regular expression for find in files in Textpad

I want to use regular expression for find in files in TextPad. I need to find URLs starting with "Areas/" and ending with "/pdf"(something like this Areas/../../...pdf). Please suggest me the correct ...
1
vote
2answers
83 views

How could I search a text file in Win7 and make it display matching lines

I have a large list of names that I have to search through many times a day. Using "find" in Notepad has gotten me by, but is there a way in the command line to display the matching strings by line ...
1
vote
1answer
45 views

xrandr | grep “ connected ” give me more than one line but IFS=$'\n' read can't break it

I have something like this: declare -a DISPLAYS AUXILIAR="$(xrandr | grep " connected ")" IFS=$'\n' read -ra DISPLAYS <<< "$AUXILIAR" Why it isn't detecting line breaks if echo "$...
0
votes
1answer
66 views

PowerShell - Quasi equivalent strings are infact not equivalent?

I have a string which I'm passing into my script as an argument. For the purpose of displaying the code on here however, I have specified these manually in the code. These variables are: $...
2
votes
1answer
78 views

Notepad++ - Delete Everything Other Than The Specified Strings

I have the following strings that I want to keep and delete the rests: uicomp-type="example-string" uicomp-type='string-example' I use the following regex to find those strings: uicomp-type="(.*?)"|...
0
votes
1answer
31 views

Generate string from table cells

I am using Excel 2008 for Mac. I would like to have a cell generate a string based on the contents of the other cells on the same row. For example, say I have the following table headers: bob, weave,...
2
votes
3answers
1k views

Parse string using batch script

How can I parse string using batch script? Goal is to save in a array everything under Import: and strip out #head for example --> //MPackages/Project/config/abc.txt and //Packages/Project/config/cde....
0
votes
1answer
162 views

search and replace string using batch or perl script

How can i search for "//packages/thirdparty/release/main.txt #10" and replace #10 with #15(set VARIABLE="#15") using batch commands and also ignoring spaces. #10 can be anything, lets assume #XXX. ...
0
votes
1answer
74 views

MS Excel - Unique name within the same column

This may be an already asked question, but unable to locate a solution that is suiting my needs... I have an Excel sheet of >24K entries. The Problem I have is the entries in a particular column are ...
0
votes
1answer
97 views

Worksheet function to check if cell contains only characters as defined in a constant string

I have this string constant: abcdefghijklmnpqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890' - Now for each cell in column A I want to check, in column B, with a worksheet function, not a Macro, if ...
1
vote
1answer
207 views

How to Concatenate Repeating String in Batch Script

I'm trying to concatenate a repeating string depending on the first parameter value passed into the script when it is called. This value represents the number of directory levels the current ...
-1
votes
1answer
383 views

String command in netbeans does not color blue as commmand

I have a windows vista home premium on my toshibe Lap, and i use netbeans. The problem is when i type in netbeans the command "String" it does not color it bluei (that means that this is a command), ...
1
vote
1answer
326 views

Notepad++ macro for changing a certain part of a string

I want to define a Notepad++ macro that takes any string that contains "foo", and creates its new versions only changing the foo to "bar1", "bar2" etc. so if my file contains abc_foo_def when I ...
0
votes
1answer
44 views

Replace a couple of strings of text automatically?

More detailed: I've got a folder with data for a game which code is pure text and customizable (M.U.G.E.N). Beside all other things, the *.cns file of each character contains following string of text:...
-2
votes
1answer
348 views

PowerShell: find line but include proceeding and preceding line(s)

This is a conceptual question that I have only briefly thought through my head. I have idea how I might do it but it seems more complicated than I think I will make it out to be. A common need is for ...
0
votes
0answers
39 views

Strings.exe does not see Cyrillic

Sysinternals utility Strings.exe does not see Cyrillic strings despite the fact that it works with Unicode. Does exist any utilities or libraries that really can extract all printable Unicode strings ...
1
vote
1answer
171 views

Iptables: Filtering string encrypted by ssl

I need to filter (send to BANRULES set) incoming http/https packets with a certain string (matchword). I do it easy when ssl is not in use (port 80): iptables -A INPUT -p tcp -m tcp --dport 80 -m ...
1
vote
3answers
3k views

Microsoft SQL. SELECT FROM WHERE query with varchar type column

Inside the SQL Server Management Studio I am trying a query like this: In human words: Give me all rows from the table where the string in the column "name" is "alice". My not working attempt on ...
1
vote
1answer
47 views

calc: Extract string from range of cells

I´m trying to figure out a easy to understand way to extract a string (that is in a range of cells) from a range of cells... That is the range of cells I have to look for a specific string (in a ...
1
vote
1answer
139 views

How To Search for multiple multi-word strings in vim?

For example I'm trying to search for the occurence of both hello world and goodbye world in the same line. I've tried a bunch of difference iterations. For example, if you want to find one multi-word ...
0
votes
2answers
429 views

How To Extract Pattern from a folder path (VBA Excel)

I'm pretty new to vba excel and trying to reorganise a very large file structure. Basically, all our equipment has a tag in the form of [A-Z][0-9]0-9][0-9][A-Z] e.g. J452G being a compressor. Every ...
2
votes
1answer
662 views

Excel VBA - User Defined Function to turn string into formula

I'm looking for something similar to the solution posted here: Excel function that evaluates a string as if it were a formula? Problem is this does not seem to work with a function in there. This ...
1
vote
1answer
1k views

A printer's SNMP community name is the default “public”, will changing it affect it's use?

I'd like to change it from the default "public" as a part of removing vulnerabilities in the workplace. Also, can the "read only", "read/write", and "trap" community names use the same strings?
0
votes
1answer
461 views

Excel VBA Insert Character Between Number and Letter

I would like some VBA code that would allow me to detect if a string contains any instances of a number followed by a letter and then insert a new character between them. For example: User enters the ...
0
votes
1answer
143 views

How to search and extract part of string in batch script?

I am pretty new to windows batch scripting and am having trouble to search and extract a portion of a string from a text file and display it out. Some samples data are shown below. The keyword for ...
0
votes
1answer
324 views

How can I delete before and after EMAIL in notepad++?

I have this: :814, 'pera', 'name1@gmail.com', '2ed', '', 'da', 0.00, '195..110.18'), >815, 'danka', 'name2@gmail.com', 'd3d6', '0655566', 'da', 0.00, '212..65.82'), *816, 'ana', 'name3@gmail.com'...
1
vote
2answers
2k views

Is it possible to see if two cells contain similar text in Excel? [duplicate]

I've got two columns populated with names, and I want to see if the names in each row are similar (not the exact same, just similar) to each other. Is there any way to do this on Excel?
0
votes
1answer
133 views

Error outputting a string to cell

I am using a vba macro to automate part of an excel spreadsheet. The following line keeps giving me a runtime error 1004# application or object defined error Sheets("Material").Last.Offset(0, 1)....
-1
votes
1answer
462 views

Deleting entire line based off of string in powershell…and keeping the line below?

I'm having some issues with powershell. What I am trying to accomplish is this: file.txt = string1 a string2 b I am using the command: Get-Content C:file.txt | Where-Object {$_ -match "string1"}...
0
votes
3answers
403 views

Batch script If command on a String

What is wrong with the following command lines for my batch script? set test=BE99012345678901 if %test% == "BE99????????????"( echo This number begins with BE99 ) Else ( echo This number doesn't ...