Browse by Tags
Showing page 1 of 2 (11 total posts)
I am performing a grep find and replace in my text editor TextWrangler on a very large CSV data file.
I have a source string of
hello??world ??goodnight?? moon?? wake up
and would like to replace the ?? substring with -- ONLY when it is bounded by non-whitespace characters on both sides, yielding a target string of
hello--world ??goodnight?? ...
I think the points you make may be at the nub of the problem.
Yes, I have been searching approx 100 PDF files and unfortunately none of the new suggestions (from other RegexAdvice users) got a result where the phrase was spread over more than one line. So I then tried searching the InDesign CS3 document that contained that situation - ...
Thanks for your answer. It made sense but unfortunately
didn't work - the search still did not pick up the phrase
in the example I used above. (I tried bot \s and \s+ between the words.)
I am at a loss ... do you have any other
I checked the original doc (InDesign CS3) and there is just one
space between the words - which ...
I am trying to set up an index page for the weekly magazine I work on. It is to show readers the names of
companies mentioned in that weeks' issue, plus the page numbers they are appear on.
I want to search all the PDF files for the week, where one PDF = one magazine page (originally made in
Adobe InDesign CS3 and Adobe InCopy ...
Hi guys :)
So, i'm not the RegEx expert, but i think for one who make this more often than me it, the problem could be easy.
2. I often got different JSON strings which i wanna store in a Database. But for saving some data i wanna "compress" them. so i
I would like to:
replace linebreaks w/ space
remove extra whitespace (e.g. replace multiple spaces with a ...
SlideGuitar: [\s\S] seems pointless to me; why not just the dot operator?
I think [\s\S] is used because you can be sure it includes newline, regardless of mode or flavour.
SlideGuitar: ...or (I would prefer this)</td>[^<]*<
The same consideration concerning newline may be relevant ...
This regular expression checks following things
- first and last character must be alphabet
- accepts single character input
- it wont allow any special character and white space at start and end
Problem is - it allows special characters like ...
I'm currently working for a php tool, and I need to capture some element like I'd do with (.+?) but I need it not to contain an 'a' preceded by a whitespace, basically not containing (\sa), is there some way to do this?
Mind you, it should work for a\s, \s[^a]a and such other options. If an input like "xyz a ajkl" is ...
I need to write a regular expression code to replace only the outer occurance of a string with some other string say <aaaaaaaaaaaaaa>------ </aaaaaaaaaaaaaa>