Find Jobs
Hire Freelancers

Need JavaScript re-write for search of string

$10-30 USD

Cancelado
Publicado há mais de 5 anos

$10-30 USD

Pago na entrega
Simple job. Need this script re-written to test for any of the arguments provided, to be anywhere in the string generated from generateAddress() ([login to view URL]). Output should highlight in blue the same way. At the moment it just checks for the arguments to be at the start or finish. I want it to provide a match if any of the args are anywhere in the string. [login to view URL]('\x1b[36m%s\x1b[0m', 'Generator') [login to view URL]('\x1b[36m%s\x1b[0m', ' by @Me') [login to view URL]('') if ([login to view URL] > 0) { [login to view URL]('Looking for Strings with keywords at the start/end:') [login to view URL](function (k) { [login to view URL](' - ', k) }) var re = '^(c)(' + [login to view URL]('|') + ')(.+)$|^(c.+)(' + [login to view URL]('|') + ')$' [login to view URL](' ') [login to view URL]('testing regular expression: ') [login to view URL](' ', re) const regexp = new RegExp(re, 'i') [login to view URL]('') [login to view URL]('\x1b[33m%s\x1b[0m', '-- Press Control C to quit --'); [login to view URL]('') for (let i = 0;;i++) { account = [login to view URL](); var test = [login to view URL]([login to view URL]) if (test) { var address = '' if (test[1] === undefined) { address = test[4] + '\x1b[32m' + test[5] + '\x1b[0m' } else { address = test[1] + '\x1b[32m' + test[2] + '\x1b[0m' + test[3] } [login to view URL]("\n"); [login to view URL](' > Match: [ ' + address + ' ] with secret [ ' + [login to view URL] + ' ]') } else { if (i % 100 === 0) [login to view URL]('.') if (i % 1000 === 0) [login to view URL]("\r" + i + ' ') } } } else { [login to view URL]('Please enter one or more keywords after the script to search for.') [login to view URL]('Eg. "node ' + [login to view URL][1] + ' walter john bob"') [login to view URL]('') [login to view URL](0) }
ID do Projeto: 18407223

Sobre o projeto

7 propostas
Projeto remoto
Ativo há 5 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
7 freelancers estão ofertando em média $22 USD for esse trabalho
Avatar do Usuário
Hi! You are using ^ and $ in your regex which asks the engine to look for the pattern in the beginning and end of the string. If you remove those, it should work. If it doesn't, let me know! Thanks and Merry Christmas!
$25 USD em 1 dia
5,0 (22 avaliações)
4,7
4,7
Avatar do Usuário
Hi, You want to perform a search inside the string and highlight entries, right? For ex, if you are looking for work "tomato" that word should be highlighted in a string like "one two three word tomato four five six"? ---- I always look carefully at the task and bid only personally, not just copy-pasting whatever promotional text If you see this sentence - you can be sure that I'm interested in your job and ready to go
$25 USD em 1 dia
4,7 (6 avaliações)
4,5
4,5
Avatar do Usuário
Total disponibilidad, he desarrollado sistemas de elección electoral, con estadísticas en Codeigniter y para utilizar dbutil tuve que modificarlo.
$25 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Hi. I've written Javascript codes a lot in my projects. I can do my best for your project. It's very simple to me. Relevant Skills and Experience Javascript Typescript C C++
$22 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) CANADA
Quispamsis, Canada
5,0
19
Método de pagamento verificado
Membro desde out. 4, 2013

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.