Questions tagged [phrase]

210 questions
-1
votes
1 answer

Parse error: syntax error, unexpected '$username' (T_VARIABLE), expecting ']' in /home/xxx/public_html/dashboard.php on line 15

I am getting following error while running the php code. I am trying to create registration form but it is consistently showing the bellow error message. Parse error: syntax error, unexpected '$username' (T_VARIABLE), expecting ']' in…
-1
votes
1 answer

Text Proper Formatting and alignment in itextsharp

I m using this code to align two phrases/two columns together in a table table = new PdfPTable(2); table.TotalWidth = 450f; table.LockedWidth = true; float[] widths= new float[] { 100f, 350f }; …
ankit sharma
  • 449
  • 1
  • 6
  • 17
-1
votes
1 answer

Python 3.4: Checking for certain input phrase while still being able to run def's

In a simple text-based game I am making using Python 3.4.2, I was interested in adding an options menu. To do this, I was hoping the user would be able to type "Options" into the chat at any time, and an options menu would pop up. I have been…
-1
votes
1 answer

Java convert string to array of numbers

I would like to know is there any java function to extract all numbers from string. String examples: "Preostalo stanje u Zicer tarifi: 248 min i 0 sec, 497 SMS, 220 MB. Tarifa vrijedi do 01.06.2015." I would like to extract 284 and 0, 497, and 220…
Vulisha
  • 35
  • 8
-1
votes
1 answer

Extract strings from JSON as array in PHP

I have the following JSON from Google API and i want to extract cse_image -> src and use it in PHP array as arr[0] for first , arr[1] for second and so on. { "kind": "customsearch#search", "url": { "type": "application/json", "template":…
Ashesh Kumar
  • 223
  • 2
  • 12
-1
votes
3 answers

Find lines with a phrase and print another section of the line

I am trying to search through a long text file to locate sections where a phrase is located and then print the phrase in one column and the corresponding data in another in a new text file. Phrase I am looking for is "Initialize All". The text…
Catherine
  • 1
  • 1
-1
votes
2 answers

How to order numbers in phrases? (MySQL)

i have a table where some iframes are listed. The problem is that they have different sizes. Now I want to order them by their size: Here is a example: now…
-1
votes
1 answer

How can I store html in a MySQL table using python

Okay here is my code. Hopefully you can help me. I am using the MySQL lib called MySQLdb. def createNick(self, user, nick): try: # TRY STATEMENT HERE SO THE NICK CAN BE RECREATED db = m.connect("host", "user", "password",…
-2
votes
1 answer

Checking number of results of a Google search in a PHP script

Is it possible to check number of Google search results of a certain phrase in a PHP script with Google API? I am curious if it can be done someway. If yes, what should I do? EDIT Okay, according to drakin8564 advices it is my function: function…
-2
votes
5 answers

Phrase matching in lists

Assuming I have a list representing a sentence ex: sent = ['terras', 'ipsius', 'Azar', 'vocatas', 'Ta', 'Xellule', 'et', 'Ginen', 'Chagem', 'in', 'contrata', 'Deyr', 'Issafisaf'] and a list of place names places = ['Ta Xellule', 'Ginen Chagem',…
gannina
  • 173
  • 1
  • 8
-2
votes
1 answer

Regex for extracting text from .eml file

I need to write regex to get the following data from an email. The data to be phrased is first name, last name, phone number, email id, pin code, message etc, i am a newbie and am not much aware of REGEX, can anyone help me with it. enter code…
-3
votes
1 answer

How can i enter from keyboard a phrase using an array?

here's what i understand it would be necessary to do: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { public const int N = 100; static…
-4
votes
2 answers

Html Parser - C# Regex html tags (div, img, a, h5 etc) plus attributes

Html Parser - C# Regex html tags content >me im the content< (div, img, a, h5 etc) the html tags are Closed in a number of different ways. Why am doing this you might ask. I have inherited prototype code to perform phrase replacement for example…
Dilbert
  • 53
  • 1
  • 8
-5
votes
2 answers

How to make an encryption key from an input string in Python?

I want to write a function that'll give the user a key for an encryption code using all 26 letters of the alphabet based on the phrase they input, i.e., if the user were to type in "PYTHON", the output would look like "PYTHONABCDEFGIJKLMQRSUVWXYZ".…
-5
votes
2 answers

Random Sentence generator in HTML / JavaScript

I'm looking to build a simple mini site with a random sentence generator. That when the visitor clicks a button the site display a random phrase that is taken from a database of phrases. And if its possible a second mini site that lets the users add…
MvM
  • 1
  • 1
  • 4
1 2 3
13
14