Quick Problem - Extracting numbers from a string
I need to extract a single variable number from a string. The string always looks like this: javascript:change(5); with the variable being 5. How can I isolate it? Many thanks in advance. ...
I need to extract a single variable number from a string. The string always looks like this: javascript:change(5); with the variable being 5. How can I isolate it? Many thanks in advance. ...
Here goes a yet another SQL question about dates… I'm building a calendaring application using PHP and Postgres that would display events spanning days, weeks or possibly months. Each event has a start date and an end date, and selecting them by range is not a problem; however, it would be useful for me if Postgres could split multi-wee...
Hi all, I have several functions which use jquery that are called across different pages. I'm wondering if it's possible to define these functions in a single file, and then call them in different files which are included after the initial file. Here's an example: ## default.js $(function() { // jquery specific functions here... ...
I have a set of values based on which i have split the string string[] seperator = new string[9]; seperator[0] = "*"; //is the client seperator[1] = "/"; //is the name of company seperator[2] = "("; //name of the market seperator[5] = ":"; //ID seperator[6] = "?"; //orderType ...
Hi, Disclaimer: I'm not a programmer, never was, never learned algorithms, CS, etc. Just have to work with it. My question is: I need to split a huge (over 4 GB) CSV file into smaller ones (then process it with require 'win32ole') based on the first field. In awk it's rather easy: awk -F ',' '{myfile=$1 ; print $0 >> (myfile".csv")}' ...
Hi, I have created a sample project using itextsharp. In that i have mentioned the Footer and a table, I generate rows by loop for the given number, if the table splits to another page then, i have one blank page which has no given data. It seems undefined. here is the code: PdfWriter.GetInstance(document, New FileStream(Configuration...
I need to split a string into newlines in .NET and the only way i know of to split strings is with the Split method. However that will not allow me to (easily) split on a newline, so what is the best way to do it? ...
Hi I am trying to use Jquery Splitter http://www.methvin.com/jquery/splitter/ it works fine if the splitter panes are static but i need to add panes dynamically in it. also i need to remove those panes dynamically as well. how can i remove the splitter binding and add dynamic split regions in it. please check it from here http://01webd...
Hi All, Simply Asking, Is there any function available in mysql to split single row elements in to multiple columns ? I have a table row with the fields, user_id, user_name, user_location. In this a user can add multiple locations. I am imploding the locations and storing it in a table as a single row using php. When i am showing the u...
I am writing a java application; but stuck on this point. Basically I have a string of Chinese characters with ALSO some possible Latin chars or numbers, lets say: 查詢促進民間參與公共建設法(210BOT法). I want to split those Chinese chars except the Latin or numbers as "BOT" above. So, at the end I will have this kind of list: [ 查, 詢, 促, 進, 民, 間, ...
A little stuck here. I have a simple question I guess. Given the following input: content {c:comment comment}this is actual content{c:comment etc} content I need a way to get the content and comments seperated, but I need to now the order of them. So a simple regex doesn't work. I want to get this: content {c:comment comment} ...
Hi! i would like to split a text (using a regex) to a dot followed by a whitespace or a dot followed by new line (\n) i'm working with c# .Net Appreciate your answers! ...
Hi, I try to to use the following batch command to start for each of the files in a the given folder 7zip and split the files into 250 MB pieces. The files should not be zipped (-mx0) because I want have low disk i/o and just want to synchronize them with amazon s3. for /f %%f in ('dir /b c:\Test\') do START 7z.exe a %%f.zip -wc:\Test...
If I have the following table: <table> <tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td></tr> <tr><td>A</td><td>B</td><td>C</td><td>D</td><td>E</td><td>F</td></tr> </table> How would I split this in XSLT so that I end up with the following: <table> <tr><td>1</td><td>2</td><td>3</td></tr> <tr><td>A</td><td>B...
I have an Int that i want to split into it's individual numbers which ideally would be contained in a list, which i can then process further. So i would like something like this: split 245 --will then get an list containing [2,4,5] Is anyone familiar with such a function? ...
Hi - got a problem I'm sure someone somewhere has encountered before. We'd been FTPing a customers .csv files down to our laptops, then SQLLoading them to our Oracle DB's, but network made it a slow process.. I set up a shell script to LFTP those files down to the Solaris DB box, and sqlload them - much faster. There were some character ...
Hello, Paint.net dies opening this image, and MS paint as well.I don't know how to open this file for editing.Actually, I set out to break this image (its a map of my area) and load it to my phone (moto rokr e6),which does not have a GPS at the moment. TileMage is giving up the splitting as well, throwing out of memory exception !. I ...
I have a source file where 2 features have been added. In order to allow cherry-picking, I'd like to commit that in 2 phases: one for each feature. Until now, in similar situations, using git add -p served me well, to commit one feature while leaving the local files in their final stage. However, I now have the problem that git add -p w...
Hi, I have a question: Let's say I have this string var: string strData = "1|2|3|4||a|b|c|d" Then, I make a Split: string[] strNumbers = strData.Split("||"); //something like this, I know It's not this simple I need two separate parts, each one containing this: //strNumbers -> {"1","2","3","4"},{"a","b","c","d"} So that after t...
Hi I would like to "grow" a path with bezier-curves. After the path has been drawn, it should be shaking a bit: Weave-like look and feel. visual example: weave example At the moment I use TweenMax.bezier, which let me move a point along this curve and at the same time (onEnterFrame) I draw lines to the current Position of the Point. Un...