# Analyzing text with Regular Expressions

**URL:** <https://www.ruby-forum.com/t/analyzing-text-with-regular-expressions/106421>\
**Category:** Rails\
**Created:** [June 10, 2007, 7:54am UTC](https://www.ruby-forum.com/t/analyzing-text-with-regular-expressions/106421 "2007-06-10T07:54:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kristen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c4cdca/32.png) [@Kristen](https://www.ruby-forum.com/u/Kristen)\
**Post date:** [June 10, 2007, 7:54am UTC](https://www.ruby-forum.com/t/analyzing-text-with-regular-expressions/106421/1 "2007-06-10T07:54:26Z")

</div>

Hello,

Im analyzing some text by using regular expressions in Ruby. Im  
wondering if there are any tools to make the analyzing of text files  
more convenient.

I ran across a program called RegExBuddy  
([Ruby Regexp Class - Regular Expressions in Ruby](http://www.regexbuddy.com/ruby.html)), and now Im wondering if it is  
useful.

Please, if you have any experience with regular expressions and Ruby,  
then do share them.

Also, any advice is welcome.

Is there some package with some useful regular expression code snippets?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Kristen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c4cdca/32.png) [@Kristen](https://www.ruby-forum.com/u/Kristen)\
**Post date:** [June 10, 2007, 11:21am UTC](https://www.ruby-forum.com/t/analyzing-text-with-regular-expressions/106421/2 "2007-06-10T11:21:21Z")

</div>

Kristen,

What do you mean by “analyzing some text” ?  
You may look to [Regular Expression Examples](http://www.regular-expressions.info/examples.html) for  
some basic examples, like ip address, email, date.

Jean-Etienne

> **[Domain2.hu](https://domain2.hu/www.woa.hu)**
>
> www.woa.hu megvásárolható domain a kiemelt domain nevek piacterén.

---

<div class="post-metadata">

**Author:** ![Kristen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c4cdca/32.png) [@Kristen](https://www.ruby-forum.com/u/Kristen)\
**Post date:** [June 10, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/analyzing-text-with-regular-expressions/106421/3 "2007-06-10T21:19:14Z")

</div>

Jean-Etienne D. wrote:

> Kristen,
> 
> What do you mean by “analyzing some text” ?  
> You may look to [http://www.regular-expressions.info/examples.html](http://www.regular-expressions.info/examples.html) for  
> some basic examples, like ip address, email, date.
> 
> Jean-Etienne  
> [http://www.woa.hu](http://www.woa.hu)

The text im analyzing is a Bill of Materials of a electronic device and  
basically I need to pull out some relevant data (its a .bom) file.

---

<div class="post-metadata">

**Author:** ![Kristen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c4cdca/32.png) [@Kristen](https://www.ruby-forum.com/u/Kristen)\
**Post date:** [June 11, 2007, 9:46am UTC](https://www.ruby-forum.com/t/analyzing-text-with-regular-expressions/106421/4 "2007-06-11T09:46:08Z")

</div>

Kristen,

> Im analyzing some text by using regular expressions in Ruby. Im  
> wondering if there are any tools to make the analyzing of text files  
> more convenient.

If you are on Windows (or Mac+Parallels) give a look at this  
e-Texteditor screencast :

[http://www.e-texteditor.com/blog/2007/regular\_expressions\_tutorial](http://www.e-texteditor.com/blog/2007/regular_expressions_tutorial)

You can paste the text to analyze and you get direct visual feedback  
when you build the regular expression.

## Alain R.

[http://blog.ravet.com](http://blog.ravet.com)
