split

php PHPExcel split Excel cell coordinate

currently, I used PHPExcel to import excel file, there is a function $cell->getCoordinate(); I would like to ask any solution for split the cell coordinate alphabet and integer? e.g A1, A2, I need to know currently which row, and until which column. I do some research about split, but not luck for it. Any idea? ...

string splitting question

t it returns not what i expected. i expected something like: ab cab ab what am i doing wrong? ...

How to use Split with jQuery?

I need to break apart a string that always looks like this: something -- something_else. I need to put "something_else" in another input field. Currently, this string example is being added to an HTML table row on the fly like this: tRow.append($('<td>').text($('[id$=txtEntry2]').val())); I figure "split" is the way to go but there is...

Advanced Array Sorting in Ruby

I'm currently working on a project in ruby, and I hit a wall on how I should proceed. In the project I'm using Dir.glob to search a directory and all of its subdirectories for certain file types and placing them into an arrays. The type of files I'm working with all have the same file name and are differentiated by their extensions. Fo...

Java splitting string by custom regex match

I am completely new to regular expressions so I'm looking for a bit of help here. I am compiling under JDK 1.5 Take this line as an example that I read from standard input: ab:Some string po:bubblegum What I would like to do is split by the two characters and colon. That is, once the line is split and put into a string array, these ...

PHP: If no Results - Split the Searchrequest and Try to find Parts of the Search

Hello, i want to split the searchrequest into parts, if there's nothing to find. example: "nelly furtado ft. jimmy jones" -> no results -> try to find with nelly, furtado, jimmy or jones.. i have an api url.. thats the difficult part.. i show you some of the actually snippets: $query = urlencode (strip_tags ($_GET[search])); and $fo...

how to ingore comma when returning json mvc

Hi all, I'm returning JSON from my controller to my view in order to populate a jquery autocomplete textbox in MVC. The problem is, some of my data contains commas, and therefore is split by the autocomplete helper. Heres my code. Controller: public ActionResult GetData() { var data = repository.GetData(); re...

Split PDF documents into separate pages using PHP (or possibly perl)

Can anybody point me towards a PHP library or script that would allow me to split a pdf consisting of multiple pages into separate files, each containing 1 page. The PDFLib documentation doesn't appear to allow this and Google hasn't been particularly helpful. I could possibly also use Perl, but it would be very inconvenient to do so. ...

How can I swap positions of two open files (in splits) in vim?

Assume I've got some arbitrary layout of splits in vim. ____________________ | one | two | | | | | |______| | | three| | | | |___________|______| Is there a way to swap one and two and maintain the same layout? It's simple in this example, but I'm looking for a solution that ...

Splits and windows in vim/emacs/etc.: can we have buffer-specific splits?

I'm using Charles Campbell's MPage[0] plugin to get multiple pages open, so I have vertical splits open for one buffer. My question is: can I have another display without splits open for another buffer, and switch back to the display with splits, without opening another instance of vim? It's easy to do so using tmux or the like, bu...

PHP String Split

I need to split a string into chunks of 2,2,3,3 characters and was able to do so in Perl by using unpack: unpack("A2A2A3A3", 'thisisloremipsum'); However the same function does not work in PHP, it gives this output: Array ( [A2A3A3] => th ) How can I do this by using unpack? I don't want to write a function for it, it should be...

How to split string in group in vb.net

Hi. i'm amol kadam,I want to know how to split string in two part.My string is in Time format (12:12).& I want to seperate this in hour & minute format.the datatype for all variables are string. for hour variable used strTimeHr & for minute strTimeMin .I tried below code but their was a exception "Index and length must refer to a locatio...

jquery split() and indexOf results in "Object doesn't support this property or method"

I have the following code: var selected = $('#hiddenField').val().split(","); ... if (selected.indexOf(id) > 0) { ... set value ... } I'm dynamically creating a CheckBoxList, and trying to remember the state of the checkboxes by putting the selected IDs into the hidden field. I get an error stating that "Object doesn't support thi...

Double split in C

OK. For example I have this line in my txt file: 1|1,12;7,19;6,4;8,19;2,2 As you can see, it has 2 parts, separated by |. I have no problems getting both parts, and separating second part 1,12;7,19;6,4;8,19;2,2 using ; separator. BUT I do have problems with separating further by , to get first and second number of each set. This is my ...

How to separate name and surname

Hello friend I have code name and surname put into same string with coma in the middle ,as "JohnSmith" I need to insert into database to separate Can you show me how to code that please. Thanks vijay ...

Delphi - How do I split a string into an array of strings based on a delimiter?

Hello all, I'm trying to find a Delphi function that will split an input string into an array of strings based on a delimiter. I've found a lot on Google, but all seem to have their own issues and I haven't been able to get any of them to work. I just need to split a string like: "word:doc,txt,docx" into an array based on ':'. The res...

jquery ajax parse xml, split array

Hi, is it possible to get the last value of an string, that looks like this for example: tm="1610612741|Bulls|Chicago|CHI" and save it as a variable? Something like that: var tm = $(this).find('htm').attr('tm'); I only need the "CHI" string. I tried everything, but what i found doesnt work. I get the string and the var from an x...

Database architecture - split vs. union vs. ?

Hey there, Got an interesting scenario I'd like to run past you guys re: DB architecture. There will be two entities: Application: This is more or less the core of the app we are building. It has a start and end date along with about 15 other properties. CalendarEvent: This a less used entity. It has a start and end date with maybe...

How to split the story in indesing markup language

Hi All, I am learning indesign, I have a doubt in story splitting... I want to split the story if the same story is used in two different text frames, I am extracting idml file and getting the needed data. My question is, I have a single story which is used by two text frames (Threaded text), and these two textframes are available in ...

How to split this string in c#?

hi i'm really not used to the split string method in c# and i was wondering how come there's no split by more than one char function? and my attempt to try to split this string below using regex has just ended up in frustration. anybody can help me? basically i want to split the string below down to aa**aa**bb**dd^__^a2a**a2a**b2b**dd...