Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#Retina , (削除) 7 (削除ここまで) 6 bytes

Retina , (削除) 7 (削除ここまで) 6 bytes

!`.0*$

Try it online (all test cases)

Output matches of a digit followed by any zeros at the end of the input string. Though not required, this also happens to work for 0.

#Retina , (削除) 7 (削除ここまで) 6 bytes

!`.0*$

Try it online (all test cases)

Output matches of a digit followed by any zeros at the end of the input string. Though not required, this also happens to work for 0.

Retina , (削除) 7 (削除ここまで) 6 bytes

!`.0*$

Try it online (all test cases)

Output matches of a digit followed by any zeros at the end of the input string. Though not required, this also happens to work for 0.

added 6 characters in body
Source Link
mbomb007
  • 23.6k
  • 7
  • 66
  • 143

#Retina, 7(削除) 7 (削除ここまで) 6 bytes

!`\d0*$`.0*$

Try it online Try it online (all test cases)

Output matches of a digit followed by any zeros at the end of the input string. Though not required, this also happens to work for 0.

#Retina, 7 bytes

!`\d0*$

Try it online (all test cases)

Output matches of a digit followed by any zeros at the end of the input string. Though not required, this also happens to work for 0.

#Retina, (削除) 7 (削除ここまで) 6 bytes

!`.0*$

Try it online (all test cases)

Output matches of a digit followed by any zeros at the end of the input string. Though not required, this also happens to work for 0.

added 47 characters in body
Source Link
mbomb007
  • 23.6k
  • 7
  • 66
  • 143

#Retina#Retina, 7 bytes

!`\d0*$

Try it online Try it online (all test cases)

Output matches of a digit followed by any zeros at the end of the input string. Though not required, this also happens to work for 0.

#Retina, 7 bytes

!`\d0*$

Try it online

Output matches of a digit followed by any zeros at the end of the input string

#Retina, 7 bytes

!`\d0*$

Try it online (all test cases)

Output matches of a digit followed by any zeros at the end of the input string. Though not required, this also happens to work for 0.

Source Link
mbomb007
  • 23.6k
  • 7
  • 66
  • 143
Loading

AltStyle によって変換されたページ (->オリジナル) /