Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1038769 // regexpForFloatingPointWithoutSign_v2

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (36L/1K).

1  
sS regexpForFloatingPointWithoutSign_v2() {
2  
  S startingWithDigit = [[\d+(\.\d*)?]];
3  
  S startingWithDot = [[\.\d+]];
4  
  S optExp = [[([eE][+-]?\d+)?]];
5  
  ret "(" + startingWithDigit + "|" + startingWithDot + ")" + optExp;
6  
}

Author comment

Began life as a copy of #1036343

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1038769
Snippet name: regexpForFloatingPointWithoutSign_v2
Eternal ID of this version: #1038769/2
Text MD5: 90acd18484af62e27e37d571d0840199
Transpilation MD5: 304868d3e80e19a6cac645d270088af9
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2024-10-19 13:22:30
Source code size: 228 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 21 / 31
Version history: 1 change(s)
Referenced in: [show references]