Posts by user2449058 • 49 points
4 posts
-
0
votes2
answers4154
viewsA: how to create a currency mask with regex
I found in another place a regex for currency validation, \^(\d{1,3}(\.\d{3})*|\d+)(\,\d{2})?$\. To check the operation, https://regex101.com/r/VWk35U/2. The expression accepts these types of…
-
-2
votes1
answer27
viewsQ: Ignored validation rule
Greetings, I’m having trouble making a validation by Laravel. Today, I need to do the following validation 'data_visita' => ['required', 'date_format:d/m/Y', new AfterOrEqual1900], when you’re…
-
1
votes1
answer1526
viewsQ: Calculate delta value for assertEquals in Junit
Greetings. How best to calculate the delta value of Junit’s assertEquals(message, expected, actual, delta) method?
-
3
votes1
answer254
viewsQ: Replace string by holding the box (uppercase/lowercase)
How best to replace a pattern with a string keeping the box? For example, DAdo -> LAdo or dado -> lado.