-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d15221
commit a9be716
Showing
25 changed files
with
302 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import java.io.*; | ||
import java.util.*; | ||
import java.text.*; | ||
import java.math.*; | ||
import java.util.regex.*; | ||
|
||
public class Solution { | ||
|
||
public static void main(String[] args) { | ||
|
||
Regex_Test tester = new Regex_Test(); | ||
tester.checker("^[A-Za-z]*s$"); // Use \\ instead of using \ | ||
|
||
} | ||
} | ||
|
||
class Regex_Test { | ||
|
||
public void checker(String Regex_Pattern){ | ||
|
||
Scanner Input = new Scanner(System.in); | ||
String Test_String = Input.nextLine(); | ||
Pattern p = Pattern.compile(Regex_Pattern); | ||
Matcher m = p.matcher(Test_String); | ||
System.out.println(m.find()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import java.io.*; | ||
import java.util.*; | ||
import java.text.*; | ||
import java.math.*; | ||
import java.util.regex.*; | ||
|
||
public class Solution { | ||
|
||
public static void main(String[] args) { | ||
|
||
Regex_Test tester = new Regex_Test(); | ||
tester.checker("^\\d+[A-Z]+[a-z]+$"); // Use \\ instead of using \ | ||
|
||
} | ||
} | ||
|
||
class Regex_Test { | ||
|
||
public void checker(String Regex_Pattern){ | ||
|
||
Scanner Input = new Scanner(System.in); | ||
String Test_String = Input.nextLine(); | ||
Pattern p = Pattern.compile(Regex_Pattern); | ||
Matcher m = p.matcher(Test_String); | ||
System.out.println(m.find()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import java.io.*; | ||
import java.util.*; | ||
import java.text.*; | ||
import java.math.*; | ||
import java.util.regex.*; | ||
|
||
public class Solution { | ||
|
||
public static void main(String[] args) { | ||
|
||
Regex_Test tester = new Regex_Test(); | ||
tester.checker("^[A-Za-z02468]{40}[\\s13579]{5}$"); // Use \\ instead of using \ | ||
|
||
} | ||
} | ||
|
||
class Regex_Test { | ||
|
||
public void checker(String Regex_Pattern){ | ||
|
||
Scanner Input = new Scanner(System.in); | ||
String Test_String = Input.nextLine(); | ||
Pattern p = Pattern.compile(Regex_Pattern); | ||
Matcher m = p.matcher(Test_String); | ||
System.out.println(m.find()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import java.io.*; | ||
import java.util.*; | ||
import java.text.*; | ||
import java.math.*; | ||
import java.util.regex.*; | ||
|
||
public class Solution { | ||
|
||
public static void main(String[] args) { | ||
|
||
Regex_Test tester = new Regex_Test(); | ||
tester.checker("^\\d{1,2}[a-zA-Z]{3,}\\.{0,3}$"); // Use \\ instead of using \ | ||
|
||
} | ||
} | ||
|
||
class Regex_Test { | ||
|
||
public void checker(String Regex_Pattern){ | ||
|
||
Scanner Input = new Scanner(System.in); | ||
String Test_String = Input.nextLine(); | ||
Pattern p = Pattern.compile(Regex_Pattern); | ||
Matcher m = p.matcher(Test_String); | ||
System.out.println(m.find()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import java.io.*; | ||
import java.util.*; | ||
import java.text.*; | ||
import java.math.*; | ||
import java.util.regex.*; | ||
|
||
public class Solution { | ||
|
||
public static void main(String[] args) { | ||
|
||
Regex_Test tester = new Regex_Test(); | ||
tester.checker("^\\d\\d+[a-z]*[A-Z]*$"); // Use \\ instead of using \ | ||
|
||
} | ||
} | ||
|
||
class Regex_Test { | ||
|
||
public void checker(String Regex_Pattern){ | ||
|
||
Scanner Input = new Scanner(System.in); | ||
String Test_String = Input.nextLine(); | ||
Pattern p = Pattern.compile(Regex_Pattern); | ||
Matcher m = p.matcher(Test_String); | ||
System.out.println(m.find()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
var Regex_Pattern = /^[a-zA-Z]*s$/; //Do not delete '/'. Replace __________ with your regex. | ||
|
||
function processData(Test_String) { | ||
//Enter your code here | ||
|
||
console.log(!!Test_String.match(Regex_Pattern)); | ||
} | ||
|
||
process.stdin.resume(); | ||
process.stdin.setEncoding("ascii"); | ||
_input = ""; | ||
process.stdin.on("data", function (input) { | ||
_input += input; | ||
}); | ||
|
||
process.stdin.on("end", function () { | ||
processData(_input); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
var Regex_Pattern = /^\d+[A-Z]+[a-z]+$/; //Do not delete '/'. Replace __________ with your regex. | ||
|
||
function processData(Test_String) { | ||
//Enter your code here | ||
|
||
console.log(!!Test_String.match(Regex_Pattern)); | ||
} | ||
|
||
process.stdin.resume(); | ||
process.stdin.setEncoding("ascii"); | ||
_input = ""; | ||
process.stdin.on("data", function (input) { | ||
_input += input; | ||
}); | ||
|
||
process.stdin.on("end", function () { | ||
processData(_input); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
var Regex_Pattern = /^[A-Za-z02468]{40}[\s13579]{5}$/; //Do not delete '/'. Replace __________ with your regex. | ||
|
||
function processData(Test_String) { | ||
//Enter your code here | ||
|
||
console.log(!!Test_String.match(Regex_Pattern)); | ||
} | ||
|
||
process.stdin.resume(); | ||
process.stdin.setEncoding("ascii"); | ||
_input = ""; | ||
process.stdin.on("data", function (input) { | ||
_input += input; | ||
}); | ||
|
||
process.stdin.on("end", function () { | ||
processData(_input); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
var Regex_Pattern = /^\d{1,2}[a-zA-Z]{3,}\.{0,3}$/; //Do not delete '/'. Replace __________ with your regex. | ||
|
||
function processData(Test_String) { | ||
//Enter your code here | ||
|
||
console.log(!!Test_String.match(Regex_Pattern)); | ||
} | ||
|
||
process.stdin.resume(); | ||
process.stdin.setEncoding("ascii"); | ||
_input = ""; | ||
process.stdin.on("data", function (input) { | ||
_input += input; | ||
}); | ||
|
||
process.stdin.on("end", function () { | ||
processData(_input); | ||
}); |
Oops, something went wrong.