Tagged Questions
0
votes
5answers
96 views
AWK regex convert 3 letter word beginning with 'a' to uppercase
I have my regex expression to find 3 letter words beginning with "a"...
\b[aA][a-z]{2}\b
(seems to work, according to this! check it out: http://rubular.com/r/Jil0E4WZnW)
Now I need to know how ...
1
vote
3answers
55 views
checking version in shell script using regex
Could anybody suggest a reg ex for checking versions
What if I like to check any update version in 1.0.0 release may be 1.0.0-1 or 1.0.0-2 or 1.0.0-3 and I just need to check for what update version ...
0
votes
2answers
49 views
Stripping email addresses from arbitrary file
What's the best way to get [email protected] combinations from a large fileset?
I assume that sed/awk can do this, but I'm not very familiar with regexp.
We have a file i.e., Staff_data.txt that houses ...
0
votes
2answers
409 views
Script to rename files in folder to match names of files in another folder
I need to do a batch rename given the following scenario:
I have a bunch of files in Folder A
A bunch of files in Folder B.
The files in Folder A are all ".doc",
the files in Folder B are all ...
-1
votes
2answers
175 views
using shell script to grep string between string a and string b
For example:
I have a txt file like :
text("hello")
text("world")
text("once")
text("again")
Aim to replace
hello with string_1,
world with string_2,
once with string_3,
again with string_4,
...
0
votes
1answer
30 views
windows script host javascript - find/run program with variable path using regular expressions
Trying to run a program with a path /release/0.0.0.100/program.exe where /release always contains only one folder with a changing version number in the pattern of \d.\d.\d.\d\d\d. Is there a way to ...
0
votes
1answer
43 views
Extract strings from thousands of files using \patterns\
I've downloaded freedb database, and the files are structured like this:
ex ("21100012" file):
DISCID=21100012
DTITLE=Various / Oberbayern '99 (CD 1)
DYEAR=1999
DGENRE=Sampler
...
0
votes
1answer
55 views
Regex works in textwrangler but something isn't right in my ruby script
Could I get someone to punch holes in my script? My regex works fine to find urls in textwrangler but when I run my script the parseducc.txt file is putting bits and pieces of things on different ...
0
votes
1answer
260 views
search engine script - regex, multiple files, line numbers
I'm looking for a search engine script, or search engine that can:
Search lots of large text files, specifically hundreds of full text
novels.
Use regex to return words and possible variations.
Give ...
0
votes
1answer
280 views
Regex to change prices in InDesign
I'm working on the new pricelist of my company and I need to change all the prices with an increase of 4%.
I'm using a script for InDesign (Number Adjuster) that works with RegEx.
In the text there ...
0
votes
0answers
97 views
expect script regexp not matching
I have the following expect script and trying to match output which is returning empty lines. Can someone help with the regexp?
#!/usr/bin/expect -f
set force_conservative 1
set timeout ...
0
votes
0answers
211 views
How to add URL Encoding support in Regular Expression?
I have a RE available at Fiddle (http://jsfiddle.net/JntuG/) that tries to capture the presence of script tag in user-supplied string. In particular, I tries to capture the letter 'r' of script tag. I ...