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
1 answer

htaccess weird trailing slash problem

url: http://localhost/url/of/the/keyword/whatever/ RewriteRule ^url/of/the/keyword/([a-z]+)/?$ ?keyword=$1 [L] // php echo $_GET['keyword']; // outputs **whatever** (OK) RewriteRule ^url/of/the/keyword/(.*)/?$ ?keyword=$1 [L] // php …
Matt Q
  • 1
0
votes
2 answers

How to remove trailing comma after final number in while loop

Trying to remove the comma that comes after the number 10. Tried every plausible workaround, but nothing's worked so far. $i = 0; while($i < 10) { echo ++$i. ","; }
0
votes
1 answer

In R and read_delim, how do I read a CSV without quotes or trailing characters?

On a machine with Ubuntu and R 3.6.2 I want to open a CSV file In LibreOffice I saw that the file has a ";" separator and ISO-8859-1 encoding It is a file with no column names (header) and the data is in Brazilian Portuguese. Dates in DD/MM/YYYY…
Reinaldo Chaves
  • 965
  • 4
  • 16
  • 43
0
votes
0 answers

Remove trailing space in a cell

I have a bunch of cells with a trailing space after the value. I tried using =clean however this did not remove it. Does anyone know another way of removing that?
0
votes
1 answer

Remove trailing '.0' only postgresql

I am removing part of a string in my column customer_id in Postgresql. Customer_id : N12300 245007.00 UPDATE public.meltuniverse SET customer_id=trim(trailing '.0' FROM customer_id::varchar); I only want to remove the .00 at the end and now…
Simon GIS
  • 1,045
  • 2
  • 18
  • 37
0
votes
1 answer

Flutter: How to let trailing icon move with largeTitle?

I want to add a Icon on the right of largeTitle.And I hope that the icon can move with the largeTitle,But now the icon on the trailing on the top-right of the screen,not move with the largeTitle .What can I do to solve the problem? new…
0
votes
2 answers

How can i Add morethen 2 Buttons and 1 text inside the trailing Property in flutter

I Want to create a product cart list in my app. so I used Card Widget and Inside of it used a ListTile widget. Inside the listTile i used trailing property to create a Column to add 2 buttons and a Number, when i create those things its shows a…
0
votes
1 answer

Finding the trailing numbers in R

I have a data frame with 2 columns for example: qwerty 24 1qwerty 21 123456 20 qwerty123 12 abc123 10 xyz223 1 test223 2 test@123 11 xyz@123 10 I want to make a data frame with the structure suffix will contain…
Nikhil KR
  • 23
  • 2
0
votes
0 answers

Salt jinja2 and trailing lines inside a loop and if statement

I can't figure out how to remove the last empty line from the output generated by a for and an if Jinja2 statments on SaltStack. I couldn't find a post pointing out the solution neither, as the solutions on internet that I could find don't involve…
jmox
  • 21
  • 5
0
votes
1 answer

Joomla trailing slash on categories

I would like to know how to add a trailing slash to joomla categories, but have no extension on articles. Example, i want- xxx.com/category1/ and xxx.com/category1/article Currently google sees- xxx.com/category1/ and xxx.com/category1 as duplicate…
Joel smith
  • 11
  • 5
0
votes
1 answer

python round numpy array with trailing 0 to a certain number of decimals

I have a np array freq_vector filled with floating numbers. For example freq_vector[0][0] is 200.00000000000003 I want to limit it to 4 decimals, then convert it to string for other usage. When I do round(freq_vector[0][0], 4), the result is 200.0,…
Echo
  • 667
  • 3
  • 8
  • 19
0
votes
2 answers

How to sort numeric strings with trailing zeroes in Python?

I want to sort a list of numeric strings (w/ trailing zeroes) like how you normally sort number. I'd also like to return a True bool if a provided numeric string is in that list. Example: old_list = [1.1, 1.8, 1.50, 1.5, 1.9, 2.1] to sorted = [1.1,…
september 21st
  • 187
  • 1
  • 7
0
votes
1 answer

Loop: Find string based on list and adjust trailing zeros and around border in another sheet

Summary: Find text/string based on list in another sheet and adjust trailing zeros with border around the range. The excel workbook containing two sheet. Sheet1 Name: List (having column A with text/string to be find and column B having numerical…
sanjay
  • 31
  • 8
0
votes
2 answers

Super simple trailing closure syntax in Swift

I am trying to follow the example in the Swift docs for a trailing closure. This is the function: func someFunctionThatTakesAClosure(closure: () -> Void) { // function body goes here print("we do something here and then go back")//does not…
user6631314
  • 1,751
  • 1
  • 13
  • 44
0
votes
2 answers

R remove part of string using gsub with wildcard

I have a dataframe where I want to do two things to the values: Add a space as thousand separator Remove de trailing zero's after the decimal I managed to do both these things separately, but I don't seem to be able to combine the two. In order to…
user10781624
  • 141
  • 1
  • 13