Questions tagged [trailing]

Trailing characters are characters at the end of a string that should be removed for reason (eg. trailing zeros in "0.5000", trailing spaces in "hello ", trailing slash in a URL, trailing newline character, etc.).

This tag should be used for questions related to strings formatting issues, either when the goal is to parse the string or to display it. However context may be very different from one question to the other, and this tag covers a wide area.

217 questions
0
votes
2 answers

ios custom tableViewCell height changes trailing unused rows and removes cell border

In the storyboard I have configured my prototype cell to have a height of 132. So I implemented - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath to return 132 for this specific row. In the simulator,…
user1529956
  • 735
  • 2
  • 10
  • 24
0
votes
3 answers

Remove whitespace from input stream by only means of istream functions

Is there any way of to remove the trailing whitespace after entered a decimal? E.g.: 10 A I want to catch the first character after the whitespace ends. (Which gotta be \n to be true. if not, then false My attempt so far: cout << "Please…
user2180833
  • 156
  • 2
  • 11
0
votes
2 answers

BigDecimal Precision Issue?

I am writing a program in which I have to repeatedly multiply two BigDecimal. After the 27th iteration, I get: 0.905225895893387921845435055445776361046057346344145563957027726 Any further calculations using this number (BigDecimal * 0.182365681285)…
0
votes
2 answers

removing the trailing (space) %20 after images

I have been getting an errors from my error log of missing images. The reason the are appearing missing is because after the image file extension there is a blank space like this uploads/images/thumbs/natasha.jpg%20 This 404 error does not occur…
0
votes
8 answers

Remove all 0s except trailing 0s from a string

There are a lot of questions on removing leading and trailing 0s but i couldn't find a way to remove all 0s except trailing 0s (leading 0 or in any other place other than the end). 100010 -> 110 010200 -> 1200 01110 -> 1110 any suggestions ?
Mouna Cheikhna
  • 38,870
  • 10
  • 48
  • 69
0
votes
1 answer

Tool to remove leading/trailing spaces in HTML files?

I have searched but could not find anything similar to what I need. I am looking for a tool that is capable of removing leading/trailing spaces in my HTML files which also have embedded JavaScript. Basically in the end, I plan to use this tool…
Geddon
  • 1,266
  • 1
  • 11
  • 31
0
votes
2 answers

SUBSTR twice in MySQL statement;

So my responses are of the pattern.. "Congratulations! You have won a Panasonic Sound System in the *. Our call centre will contact you on ***." What I need is to select only the prize (in this case Panasonic Sound System" ) as the output. The…
user1444664
0
votes
1 answer

Remove trailing slash with htaccess but preserve query string

I am using following directives in my htaccess to remove trailing slashs from my uris to prevent duplicate content. However these directives also remove any query string, that might be present. RewriteCond %{HTTP_HOST} ^(www.)?mydomain\com$…
user990583
-1
votes
1 answer

SQL how do I remove trailing spaces?

I'm currently working in an SQL database where a column has trailing spaces. The spaces in question show up as %20 in the browser url. I've been able to remove them with a select query but whenever I convert it to an update an set query it doesn't…
DaSernet
  • 25
  • 5
-1
votes
4 answers

How to remove trailing characters with Transact-SQL (t-sql)?

With transact-sql (t-sql) I have a string constant and three string variables I want to Concatenate with a semicolon delimiter between each value. Each of the three string variables are sometimes blank or null, which creates situations where there…
Brian S
  • 15
  • 4
-1
votes
1 answer

regex matching when not trailing slash

How would a regex look like when i have the input foo.bar/level/1A foo.bar/level/1A/test foo.bar/level/1B foo.bar/level/1A/blabl/sdffs foo.bar/test As a result I only want the urls where the root items in the level folder so…
byenary
  • 301
  • 2
  • 3
  • 7
-1
votes
1 answer

How to remove the trailing 0000 with a sql expression? for example, 1.0100000 what I need is 1.01

How to remove the trailing 0000 with a sql expression? for example, 1.0100000 - what I need is 1.01 after running it, thanks in advance!
markit
  • 1
-1
votes
1 answer

Remove trailing number in Wordpress via .htaccess

I have tried this: remove trailing number from url via .htaccess But when I reload my page, it produces an error on reload. Are their any other ways on doing it? It doesn't work for me.
Monica Negapatan
  • 251
  • 1
  • 14
  • 29
-2
votes
1 answer

iphone touch trailing stars

I want to create a simliar effect for ipad in xcode as shown in following link, can any one guide. http://tutorials.flashmymind.com/2009/04/flash-mouse-trailer-with-stars/ -(IBAction)SendEmail{ MFMailComposeViewController *picker =…
Venkat
  • 1
  • 1
-2
votes
2 answers

parseInt is trimming trailing zeroes after comma javascript

I am stuck in a solution in which I am trying to convert the string to integer, but it truncates the zeroes after comma.Any help on this is much appreciated. For example, parseInt("3,50,000") // 3 ==> what i actually need is 3,50,00 of integer…
Nancy
  • 911
  • 7
  • 26
  • 54
1 2 3
14
15