python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Inserting colon with join function after splitting. PERL
my $fruit;
my $quantity = <STDIN>;
my $results = split(/,|:/,$quantity);
foreach my $result(@results){
my ($fruit_name, $value) = split("=", @result);
if($fruit_name == "...
Iv4nT
Votes: 0
Answers: 2
Regex help requested first words in 2 consecutive lines
I need a regex for the following sample text:
Doe printing and typesetting industry.
Name Ipsum has been the industry's standard.
The regex must result "Doe" (which could be any other name ...
MacHow
Votes: 0
Answers: 2
Regex to extract four digits using Java Pattern
I'm trying to extract four digits before the file extension using Java Pattern Matchers. It's throwing no group found exception. Can someone help me on this ?
String fileName = "20210101-000000_f...
TechGeek
Votes: 0
Answers: 1
PHP get image url from html-string using regular expression
I'm trying to get all images urls from a html-string with php.
Both from img-tags and from inline css (background-image)
<?php
$html = '
<div style="background-image : url(https://exampel.c...
Dennis
Votes: 0
Answers: 1