substitution
Perl regex find and replace
I\'m new to perl and I\'m trying to figure out a find and replace. I have a large csv file (actually semi-colon separated). Some of the numbers (int and decimals) in the file have a negat开发者_StackO[详细]
2023-03-25 12:33 分类:问答Post-cache substitution with Page.Render overriding
The context I have an Asp .Net web application with some pages that inherit from a base class \"BasePage\".[详细]
2023-03-19 04:16 分类:问答How do I substitute overlapping matches with a Perl regex?
I want to find a开发者_StackOverflow社区ll occurences of \"BBB\" in a string and substitute them with \"D\". For example, I have \"ABBBBC\" and want to produce \"ADBC\" and \"ABDC\". (First substitute[详细]
2023-03-16 23:36 分类:问答Removing url from text using ruby
Given a text, I 开发者_如何学运维want to remove the url part and leave other text. Example: \'bla bla bla... bla bla bla... http://bit.ly/someuri bla bla bla...\'[详细]
2023-03-13 13:54 分类:问答Using the substitution method for solving recurrences
I have a question. In my book they have the following recurrence: T(n) = 3*T(floor(n/4))+theta(n^2) They try to guess that T(n) = O(n^2) and they then use the substitution method to verify the gue[详细]
2023-03-10 06:35 分类:问答Whats the difference between {$var} and $var?
I would like to know when and why should I use {$var} echo \"This is a test using {$var}\"; a开发者_C百科nd when (and why) should I use the simple form $var[详细]
2023-03-07 21:33 分类:问答Change lines that match a pattern in between delimiters using awk
I have an input file something like this: some line some other line another line start_delimiter interesting stuff[详细]
2023-03-06 23:32 分类:问答Default substituting %s in python scripts
Sometimes in Python scripts I see lines like: cmd = \"%s/%s_tb -cm cond+line+fsm -ucli -do \\\"%s\\\"\"[详细]
2023-03-05 09:03 分类:问答How to include a minimum of n spaces between two strings in Vim via substitute?
I have a text file with two words of different lengths on each line. For better reading, I want to have the second word on each line to be preceded with enough space characters to line up with the sec[详细]
2023-03-05 03:08 分类:问答Preprocessor variables in Java
I am developing with GWT and share a codebase with an Android developer. Some functions we want to share t开发者_开发技巧ake speciffic arguments like \"Drawable\" under Android and \"Image\" under GWT[详细]
2023-03-03 16:37 分类:问答