Showing posts with label pattern matching. Show all posts
Showing posts with label pattern matching. Show all posts

Thursday, July 29, 2021

Issue with Techgig's Question of the day - shows fail for right output for code submission

 



Issue found with today's techgig challenge :

Even if the testcase output matches the expected output  , the console shows a "Fail" as Execution Log while Submitting Code.

In the left panel one can see that the submission with "custom input" however shows a pass .

Sunday, July 25, 2021

Regular Expressions in Python | Scenario - Finding sub-string match patterns to validate a genuine number from a numeric string using Regular Expressions and search() method in Python | Conceptual Infographic Note

 


Case 01 : Ascertaining a positive match using "\w" to match a specific phone number to a generic string


Case 02 : Ascertaining a negative  match or mismatch using "\w" whether a  match over given string occurs or not

Regular Expressions in Python | Scenario - Finding a sub-string match and its count from a main string using Regular Expressions and findall() function in Python | Conceptual Infographic Note


 

Regular Expressions in Python | Scenario - Replacing a word ("sub-string") with another word ("sub-string") in a main string using Regular Expressions and substitute function in Python | Conceptual Infographic Note


 

Regular Expressions in Python | Scenario - Finding matching pattern of the main string using Regular Expressions and findall() function in Python | Conceptual Infographic Note

 


Regular Expressions in Python | Scenario - Finding Positional Indexes of each matching pattern of the main string using Regular Expressions | Conceptual Infographic Note

 


Regular Expressions in Python | Scenario - Finding and Retrieving specific sub-strings with commonality in patterns using Regular Expressions | Conceptual Infographic Note