Hello, everyone! In this markdown file, we'll be covering the usage of regular expressions in a few other languages by showing you each language specific syntax, and some Useful Regex Supporting API methods. Feel free to go through the whole file or use the navigation index below.
This file contains hidden or 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
| const fs = require('fs') | |
| const path = require('path') | |
| function parseCsvLinesToArray(file) { | |
| const matchLineBreak = /\r?\n/ | |
| return file.toString().trim().split(matchLineBreak) | |
| } | |
| function composeMatchingCsvColumnRegex(csvColumns) { | |
| const csvColumnToNamedCapturingGroup = (currentColumn, currentIndex, array) => { |
This file contains hidden or 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
| def PI(): | |
| return "3.1415" |
This file contains hidden or 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
| const array = ['H', 'e', 'l', 'l','o'] | |
| console.log(typeof Array); // Resultado: function | |
| console.log(typeof array); // Resultado: object |
This file contains hidden or 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
| class Animal { | |
| constructor(nome, filo) { | |
| this.nome = nome | |
| this.filo = filo | |
| } | |
| apresentar() { | |
| console.log(`Nome: ${this.nome}\nFilo: ${this.filo}`); | |
| } | |
| } |
This file contains hidden or 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
| console.log(typeof Animal); // Resultado: function | |
| console.log(typeof cachorro); // Resultado: object |
This file contains hidden or 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
| function Animal(nome, filo) { | |
| this.nome = nome | |
| this.filo = filo | |
| this.apresentar = function() { | |
| console.log(`Nome: ${this.nome}\nFilo: ${this.filo}`); | |
| } | |
| } | |
| let cachorro = new Animal("Cachorro", "Cordados"); |