I'm using Perl to highlight errors through my browser as I scan through pages of text. At this point, I want to ensure the text Seq is preceded by a m ...
I'm using Perl to highlight errors through my browser as I scan through pages of text. At this point, I want to ensure the text Seq is preceded by a m ...
I would like to remove all the digits from the end of: "Car 7 5 8 7 4". How can I achieve it using regex or other approaches? I tried following but it ...
I am attempting to format the output of a multi-line egrep query into CSV compatible format. I need to grab a handful of values from a large list of ...
I have one word per cell. I need to substitute characters with other characters based on a range of conditions, as follows. Condition 1 - if the word ...
I have this chunk of code: const foo = "hello", world = 'world'; console.log("%s,%s!", world, "hey", "javascript", foo); <h1>Check ...
I'm wondering why the first substitution does not work, the second, however, does. ...
I thought it would be easy to define a string such as "1 2 3" and use it within AWK (GAWK) to extract the required fields, how wrong I have been. I h ...
In bash you can do something like this: But this will give a substitution error in zsh. I haven't found a really great way to do this in zsh. Pres ...
I need to see if there is a way to parse out variables that are effectively, dynamically generated. I have a list of 'color' definitions from a varia ...
Is there a way to do a substitution in sympy of all occurences that satisfy a given pattern? For example, if I have an expression that contains multip ...
I try to substitute variables in a sympy expression but I get NaN type after substitution and I don't understand why. Here is the code: expr1 is a ...
I am trying to convert this input from file.txt into this output with awk The best I did so far is awk '$1=$1' FS="[!;^}8-]" OFS="," file.txt ...
I'm using the subs method to replace certain parameters in an expression with values prior to solving the equation. The following simple example work ...
I'm having problems using mod_substitute to write specific characters, specifically new-line, tabs and |-characters. The manual pages for Apache doesn ...
This prints ./gandalf.tar, but I need just ./gandalf. I might have even files like ./gandalf.tar.a.b.c which have many more extensions. I just need ...
I'm new to Python and I need to do this: I need to substitute in a string all the * with a (1) and the number has to increment in 1 each time. For ex ...
I'm new to Python and I need to multiplicate the vowels in a string with the number that the user gives me. For example: new_string ("Charleston", 2) ...
I know how to extract a string by removing a prefix or suffix, but I don't know how to do both. Concretely, in the example below, how can I display in ...
I have a class that can accept arithmetic types and std::complex. A simplified code of the class is #include <complex> template<typename T& ...
Let's say you have a table of properties in a Google Sheet... Col A (Name) Property 1 Propert ...