Đã Hủy

Need JavaScript re-write for search of string

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)


Kĩ năng: Coding, HTML5, Java, Javascript, Kiến trúc phần mềm

Xem nhiều hơn: javascript replace all spaces, js replace all text in string, javascript replace special characters, javascript string replace all, find all occurrences of a substring in a string javascript, jquery string replace all, javascript find and replace text in html, jquery replace text, need someone write memoirs, need javascript menu system based images, search string excel file vbs, javascript internal search free web site, example simple press release, vbnet write ascii string, need someone write book, need writers write articles minimum pay, need someone write website, need someone write terms conditions website, need someone write business proposal, javascript write csv

Về Bên Thuê:
( 18 nhận xét ) Quispamsis, Canada

ID dự án: #18407223

10 freelancer đang chào giá trung bình $24 cho công việc này


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 C Thêm

$25 USD trong 1 ngày
(22 Nhận xét)

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"? Thêm

$25 USD trong 1 ngày
(6 Nhận xét)

Hi, Please consider us for this project. As we have successfully finished many projects for my client at here and [login to view URL] have 7 years of experience in software development , Web development and maintenance of bus Thêm

$25 USD trong 1 ngày
(24 Nhận xét)

Dear sir I am a javascript expert with 6+ years experience As you can see my profile, I am a good developer here Please contact me Regards

$30 USD trong 1 ngày
(7 Nhận xét)

Hi, I've read carefully of your job. I am a professional "Full Stack Web Developer". I have more than five years experience in Web Development. Your satisfaction with the project is my top priority! If you give m Thêm

$25 USD trong 1 ngày
(4 Nhận xét)

Total disponibilidad, he desarrollado sistemas de elección electoral, con estadísticas en Codeigniter y para utilizar dbutil tuve que modificarlo.

$25 USD trong 1 ngày
(0 Nhận xét)

Hello, I am stepping into the Upwork network with years of experience and expertise in all IT related projects. We are running it company with the team of 8 employees which are working with dedication and determ Thêm

$25 USD trong 1 ngày
(0 Nhận xét)

Dear Sir/Madam, I am a mobile and web developer with professional skill. I and my experienced team members are looking forward to render excellent technical assistant, thus finding good partners and establishing goo Thêm

$25 USD trong 1 ngày
(0 Nhận xét)

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 trong 1 ngày
(0 Nhận xét)

I've completed the job as described by you: The script checks if the arguments supplied in 'lookFor' appear anywhere in the 'address' field of the output of '[login to view URL]'. If yes, the result is printed in blue along Thêm

$10 USD trong 1 ngày
(0 Nhận xét)