Questions tagged [oniguruma]

Oniguruma (鬼車) is a BSD licensed regular expression library which allows encoding (e.g. `UTF-8`, `EUC-JP`, `GB18030`) to be specified for each regular expression object. Use this tag for questions about Oniguruma regex syntax. Be sure to tag the language this library is used in.

Oniguruma (鬼車) is a BSD licensed regular expression library which supports Unicode characters in encodings such as UTF-8, UTF-16 and EUC-JP. It allows encoding to be specified for each regular expression object.

The Ruby programming language, since version 1.9, as well as PHP's multi-byte string module (since PHP5), use Oniguruma as their regular expression engine. It is usable in C/C++ and ports to Cocoa, Java and Erlang have also been made.

The current version is 5.9.4 (c) K.Kosako, updated at: 2013/04/04

Official Page - http://www.geocities.jp/kosako3/oniguruma/

54 questions
0
votes
1 answer

Get the first word in a pattern (using oniguruma on SublimeText)

When trying to define a new language that extends HTML on SublimeText, i can't seem to find the right syntax for getting the first word on a pattern. my goal is when this will appear: [[something\something else else else]] that the words…
0
votes
1 answer

TextMate Edit Latex Bundle Snippet, regex to replace non ascii-characters

I'm trying to modify the code from a TextMate snippet in the LaTeX Bundle. This is the code: \section{${1:section name}} % (fold) \label{sec:${2:${1/\\\\\w+\{(.*?)\}|\\\\(.)|(\w+)|([^\w\\\\]+)/(?4:_:\L$1$2$3)/g}}} ${0:$TM_SELECTED_TEXT} % section $2…
piptin
  • 365
  • 1
  • 4
  • 16
0
votes
1 answer

Regex problems in TextMate

Regular Expressions are new to me (yet they are wonderful and useful :D). However, after trying to use them in TextMate, I'm getting unexpected results. I'm not sure if that's a bug or that's how regular expressions work. I have this code begin text…
Manuel
  • 301
  • 2
  • 11
0
votes
1 answer

Find and replace numbers in textmate

I am trying to remove huge sequence of time stamp on a text file. It's formatted like this: Service Commands(04:59) Using system-config-services(03:49) I want it to look like this: Service Commands Using system-config-services I tried with the…
JustinBieber
  • 355
  • 3
  • 5
  • 23
0
votes
1 answer

Regex with positive lookbehind that works until interpolated and combined with other

Using a positive lookbehind, the individual regexes match their respective strings. When combined, they don't. When one is changed by removing a positive lookbehind it matches. I don't understand why and would like to know so that I can fix it…
ian
  • 12,003
  • 9
  • 51
  • 107
0
votes
2 answers

Textmate Regex Simple Find/Replace

I am trying to do a simple find and replace. I have: as a variable on each page and I'm replacing it with: I had my find set up like this:
FTSoR
  • 41
  • 2
  • 9
0
votes
1 answer

a simple (i think) REGEX needed for Textmate

Can someone please advise how to do this search and replace in textmate. I think I need a REGEX (but i know very little about REGEXes!) i want to change all these bullet images to GIFs... bullet-1.png becomes bullet-1.gif and I want where the…
swisstony
  • 1,667
  • 3
  • 18
  • 27
-1
votes
1 answer

Regexp: count amount of quotes before matched string

Let's say I have a string I want to match: banana. The problem is that I want to check whether this string is inside of double quotes. I've read that you can count the amount of double quotes in the whole line:…
-2
votes
1 answer

In Logstash how to extract substring in a bigger string?

Feeling difficulty in writing grok patterns.Please help I have GetIndicatorsByAnalysisProcessIDServlet service method is called and in this how to extract only GetIndicatorsByAnalysisProcess and text GetIndicatorsByAnalysisProcess will not be same…
Nagappa L M
  • 1,452
  • 4
  • 20
  • 33
1 2 3
4