Questions tagged [prefix]

A prefix is a part of a word attached to a beginning of a word which modifies the meaning of that stem.

A prefix is a part of a word attached to a beginning of a word which modifies the meaning of that stem. Prefixes are generally adding an attribute to the base-word. For example the word "prefix" is composed by the prefix of "pre" and the base-word of "fix". The prefix of "pre" means before.

Prefix may also refer to:

1325 questions
-5
votes
1 answer

Java String to String[] of possible prefixes

I would like to create an array of prefixes to iterate through from a string. This is to create some tests where the options are matched using String.startsWith For example "start" would become { "s", "st", "sta", "star", "start" }
EdJoJob
  • 1,139
  • 9
  • 15
-6
votes
1 answer

String prefix and Suffix separated by ": " in Swift

In Swift I want to extract the Prefix until space and Suffix until space both separated by ": ". If white space between strings it should be next line. Ex: Apple: Fruit Tomato: Vegetable Iron: Material Result needed as Apple: Fruit Tomato:…
Sureshtrb
  • 51
  • 11
-6
votes
3 answers

Accepting login number with changing prefix with PHP

I have a flatfile database file with the following numbers: 1 2 3 4 5 etc. The numbers correspond to a USER ID where a person would enter any of those numbers above, in order to login. I do not want to modify my file. My question is, if there's a…
Funk Forty Niner
  • 74,450
  • 15
  • 68
  • 141
-7
votes
1 answer

message.content.startswith is not a function

Here is my code: if (message.content.startswith(prefix+'ping')) { message.channel.sendmessage('pong! \'${date.now() -message.createdtimemestamp} ms\''); } else It gives me an error TypeError: message.content.startswith is not a function What is…
Mark Ehab
  • 9
  • 1
  • 1
  • 3
1 2 3
88
89